Sfoglia il codice sorgente

fix(i18n): add i18n translate data

添加部分缺失的翻译文案
无木 3 anni fa
parent
commit
1f55c4180f

+ 1 - 0
.vscode/settings.json

@@ -117,6 +117,7 @@
   "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
   "i18n-ally.enabledParsers": ["ts"],
   "i18n-ally.sourceLanguage": "en",
+  "i18n-ally.displayLanguage": "zh-CN",
   "i18n-ally.enabledFrameworks": ["vue", "react"],
   "cSpell.words": [
     "vben",

+ 1 - 0
src/locales/lang/en/component.ts

@@ -20,6 +20,7 @@ export default {
     btn_scale_y: 'Flip vertical',
     btn_zoom_in: 'Zoom in',
     btn_zoom_out: 'Zoom out',
+    preview: 'Preivew',
   },
   drawer: {
     loadingText: 'Loading...',

+ 1 - 0
src/locales/lang/zh-CN/component.ts

@@ -20,6 +20,7 @@ export default {
     btn_scale_y: '垂直翻转',
     btn_zoom_in: '放大',
     btn_zoom_out: '缩小',
+    preview: '预览',
   },
   drawer: {
     loadingText: '加载中...',