Skip to content

Commit

Permalink
perf(locale): reduce the number of multilingual files
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Jun 17, 2021
1 parent d196340 commit 0acc4ab
Show file tree
Hide file tree
Showing 35 changed files with 395 additions and 399 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,5 @@
"i18n-ally.enabledParsers": ["ts"],
"i18n-ally.sourceLanguage": "en",
"i18n-ally.enabledFrameworks": ["vue", "react"],
"cSpell.words": ["vben", "windi", "browserslist", "esnext"]
"cSpell.words": ["vben", "windi", "browserslist", "esnext", "antv", "tinymce", "qrcode"]
}
4 changes: 4 additions & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

- 移除`useExpose`,使用组件自身提供的`expose`代替

### ⚡ Performance Improvements

- **Locale** 合并多语言文件,减少文件数量

### ✨ Features

- **CropperImage** `Cropper` 头像裁剪新增圆形裁剪功能
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
},
"dependencies": {
"@iconify/iconify": "^2.0.2",
"@logicflow/core": "^0.4.14",
"@logicflow/extension": "^0.4.14",
"@logicflow/core": "^0.4.15",
"@logicflow/extension": "^0.4.15",
"@vueuse/core": "^5.0.3",
"@zxcvbn-ts/core": "^0.3.0",
"ant-design-vue": "2.1.6",
Expand Down
194 changes: 194 additions & 0 deletions src/locales/lang/en/routes/demo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
export default {
charts: {
baiduMap: 'Baidu map',
aMap: 'A map',
googleMap: 'Google map',
charts: 'Chart',
map: 'Map',
line: 'Line',
pie: 'Pie',
},
comp: {
comp: 'Component',
basic: 'Basic',
transition: 'Animation',
countTo: 'Count To',

scroll: 'Scroll',
scrollBasic: 'Basic',
scrollAction: 'Scroll Function',
virtualScroll: 'Virtual Scroll',

tree: 'Tree',

treeBasic: 'Basic',
editTree: 'Searchable/toolbar',
actionTree: 'Function operation',

modal: 'Modal',
drawer: 'Drawer',
desc: 'Desc',

lazy: 'Lazy',
lazyBasic: 'Basic',
lazyTransition: 'Animation',

verify: 'Verify',
verifyDrag: 'Drag ',
verifyRotate: 'Picture Restore',

qrcode: 'QR code',
strength: 'Password strength',
upload: 'Upload',

loading: 'Loading',

time: 'Relative Time',
cropperImage: 'Cropper Image',
},
editor: {
editor: 'Editor',
jsonEditor: 'Json editor',
markdown: 'Markdown editor',

tinymce: 'Rich text',
tinymceBasic: 'Basic',
tinymceForm: 'embedded form',
},
excel: {
excel: 'Excel',
customExport: 'Select export format',
jsonExport: 'JSON data export',
arrayExport: 'Array data export',
importExcel: 'Import',
},
feat: {
feat: 'Page Function',
icon: 'Icon',
tabs: 'Tabs',
sessionTimeout: 'Session Timeout',
print: 'Print',
contextMenu: 'Context Menu',
download: 'Download',
clickOutSide: 'ClickOutSide',
imgPreview: 'Picture Preview',
copy: 'Clipboard',
msg: 'Message prompt',
watermark: 'Watermark',
ripple: 'Ripple',
fullScreen: 'Full Screen',
errorLog: 'Error Log',
tab: 'Tab with parameters',
tab1: 'Tab with parameter 1',
tab2: 'Tab with parameter 2',

ws: 'Websocket test',

breadcrumb: 'Breadcrumbs',
breadcrumbFlat: 'Flat Mode',
breadcrumbFlatDetail: 'Flat mode details',

breadcrumbChildren: 'Level mode',
breadcrumbChildrenDetail: 'Level mode detail',
},
flow: {
name: 'Graphics editor',
flowChart: 'FlowChart',
},
form: {
form: 'Form',
basic: 'Basic',
useForm: 'useForm',
refForm: 'RefForm',
advancedForm: 'Shrinkable',
ruleForm: 'Form validation',
dynamicForm: 'Dynamic',
customerForm: 'Custom',
appendForm: 'Append',
},
iframe: {
frame: 'External',
antv: 'antVue doc (embedded)',
doc: 'Project doc (embedded)',
docExternal: 'Project doc (external)',
},
level: { level: 'MultiMenu' },
page: {
page: 'Page',

form: 'Form',
formBasic: 'Basic Form',
formStep: 'Step Form',
formHigh: 'Advanced Form',

desc: 'Details',
descBasic: 'Basic Details',
descHigh: 'Advanced Details',

result: 'Result',
resultSuccess: 'Success',
resultFail: 'Failed',

account: 'Personal',
accountCenter: 'Personal Center',
accountSetting: 'Personal Settings',

exception: 'Exception',
netWorkError: 'Network Error',
notData: 'No data',

list: 'List page',
listCard: 'Card list',
basic: 'Basic list',
listBasic: 'Basic list',
listSearch: 'Search list',
},
permission: {
permission: 'Permission',

front: 'front-end',
frontPage: 'Page',
frontBtn: 'Button',
frontTestA: 'Test page A',
frontTestB: 'Test page B',

back: 'background',
backPage: 'Page',
backBtn: 'Button',
},
setup: {
page: 'Intro page',
},
system: {
moduleName: 'System management',

account: 'Account management',

password: 'Change password',

dept: 'Department management',

menu: 'Menu management',
role: 'Role management',
},
table: {
table: 'Table',

basic: 'Basic',
treeTable: 'Tree',
fetchTable: 'Remote loading',
fixedColumn: 'Fixed column',
customerCell: 'Custom column',
formTable: 'Open search',
useTable: 'UseTable',
refTable: 'RefTable',
multipleHeader: 'MultiLevel header',
mergeHeader: 'Merge cells',
expandTable: 'Expandable table',
fixedHeight: 'Fixed height',
footerTable: 'Footer',
editCellTable: 'Editable cell',
editRowTable: 'Editable row',
authColumn: 'Auth column',
},
};
9 changes: 0 additions & 9 deletions src/locales/lang/en/routes/demo/charts.ts

This file was deleted.

38 changes: 0 additions & 38 deletions src/locales/lang/en/routes/demo/comp.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/locales/lang/en/routes/demo/editor.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/locales/lang/en/routes/demo/excel.ts

This file was deleted.

29 changes: 0 additions & 29 deletions src/locales/lang/en/routes/demo/feat.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/locales/lang/en/routes/demo/flow.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/locales/lang/en/routes/demo/form.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/locales/lang/en/routes/demo/iframe.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/locales/lang/en/routes/demo/level.ts

This file was deleted.

30 changes: 0 additions & 30 deletions src/locales/lang/en/routes/demo/page.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/locales/lang/en/routes/demo/permission.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/locales/lang/en/routes/demo/setup.ts

This file was deleted.

Loading

0 comments on commit 0acc4ab

Please sign in to comment.