feat: 文档列表的i18n适配
This commit is contained in:
@ -10,10 +10,10 @@
|
||||
<h3>{{ doc.title }}</h3>
|
||||
<div class="document-content">
|
||||
<span v-if="doc.size" class="document-meta"
|
||||
>大小: {{ formatFileSize(doc.size) }}
|
||||
>{{ $t('document-meta.size') }}: {{ formatFileSize(doc.size) }}
|
||||
</span>
|
||||
<span v-if="doc.filename" class="document-meta"
|
||||
>格式:
|
||||
>{{ $t('document-meta.format') }}:
|
||||
{{ formatFileExtension(getFileExtension(doc.filename)) }}</span
|
||||
>
|
||||
</div>
|
||||
|
||||
@ -78,5 +78,9 @@
|
||||
"select-product-type": "Select product type",
|
||||
"select-product-model": "Select product model",
|
||||
"enter-keyword": "Enter keyword"
|
||||
},
|
||||
"document-meta": {
|
||||
"size": "Size",
|
||||
"format": "Format"
|
||||
}
|
||||
}
|
||||
|
||||
@ -77,5 +77,9 @@
|
||||
"select-product-type": "选择产品类型",
|
||||
"select-product-model": "选择产品系列",
|
||||
"enter-keyword": "输入关键词"
|
||||
},
|
||||
"document-meta": {
|
||||
"size": "大小",
|
||||
"format": "格式"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user