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