Skip to content

Commit

Permalink
perf: merge locale file
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Apr 17, 2021
1 parent e1bc33f commit c04e894
Show file tree
Hide file tree
Showing 59 changed files with 673 additions and 686 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## Wip

### ✨ Features

- 新增图形编辑器示例

### ⚡ Performance Improvements

- 合并部分语言文件,减少文件数量

### 🐛 Bug Fixes

- 修复黑暗主题刷新闪烁的白屏
Expand Down
112 changes: 112 additions & 0 deletions src/locales/lang/en/component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
export default {
app: {
searchNotData: 'No search results yet',
toSearch: 'to search',
toNavigate: 'to navigate',
},
countdown: {
normalText: 'Get SMS code',
sendText: 'Reacquire in {0}s',
},
drawer: {
loadingText: 'Loading...',
cancelText: 'Close',
okText: 'Confirm',
},
excel: {
exportModalTitle: 'Export data',
fileType: 'File type',
fileName: 'File name',
},
form: {
putAway: 'Put away',
unfold: 'Unfold',
maxTip: 'The number of characters should be less than {0}',
apiSelectNotFound: 'Wait for data loading to complete...',
},
icon: {
placeholder: 'Click the select icon',
search: 'Search icon',
copy: 'Copy icon successfully!',
},
menu: {
search: 'Menu search',
},
modal: {
cancelText: 'Close',
okText: 'Confirm',
},
table: {
settingDens: 'Density',
settingDensDefault: 'Default',
settingDensMiddle: 'Middle',
settingDensSmall: 'Compact',
settingColumn: 'Column settings',
settingColumnShow: 'Column display',
settingIndexColumnShow: 'Index Column',
settingSelectColumnShow: 'Selection Column',
settingFixedLeft: 'Fixed Left',
settingFixedRight: 'Fixed Right',
settingFullScreen: 'Full Screen',
index: 'Index',
total: 'total of {total}',
},
time: {
before: ' ago',
after: ' after',
just: 'just now',
seconds: ' seconds',
minutes: ' minutes',
hours: ' hours',
days: ' days',
},
tree: {
selectAll: 'Select All',
unSelectAll: 'Cancel Select',
expandAll: 'Expand All',
unExpandAll: 'Collapse all',

checkStrictly: 'Hierarchical association',
checkUnStrictly: 'Hierarchical independence',
},
upload: {
save: 'Save',
upload: 'Upload',
imgUpload: 'ImageUpload',
uploaded: 'Uploaded',

operating: 'Operating',
del: 'Delete',
download: 'download',
saveWarn: 'Please wait for the file to upload and save!',
saveError: 'There is no file successfully uploaded and cannot be saved!',

preview: 'Preview',
choose: 'Select the file',

accept: 'Support {0} format',
acceptUpload: 'Only upload files in {0} format',
maxSize: 'A single file does not exceed {0}MB ',
maxSizeMultiple: 'Only upload files up to {0}MB!',
maxNumber: 'Only upload up to {0} files',

legend: 'Legend',
fileName: 'File name',
fileSize: 'File size',
fileStatue: 'File status',

startUpload: 'Start upload',
uploadSuccess: 'Upload successfully',
uploadError: 'Upload failed',
uploading: 'Uploading',
uploadWait: 'Please wait for the file upload to finish',
reUploadFailed: 'Re-upload failed files',
},
verify: {
error: 'verification failed!',
time: 'The verification is successful and it takes {time} seconds!',
redoTip: 'Click the picture to refresh',
dragText: 'Hold down the slider and drag',
successText: 'Verified',
},
};
5 changes: 0 additions & 5 deletions src/locales/lang/en/component/app.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/locales/lang/en/component/countdown.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/locales/lang/en/component/drawer.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/locales/lang/en/component/excel.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/locales/lang/en/component/form.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/locales/lang/en/component/icon.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/locales/lang/en/component/menu.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/locales/lang/en/component/modal.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/locales/lang/en/component/table.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/locales/lang/en/component/time.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/locales/lang/en/component/tree.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/locales/lang/en/component/upload.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/locales/lang/en/component/verify.ts

This file was deleted.

114 changes: 114 additions & 0 deletions src/locales/lang/en/layout.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
export default {
footer: { onlinePreview: 'Preview', onlineDocument: 'Document' },
header: {
// user dropdown
dropdownItemDoc: 'Document',
dropdownItemLoginOut: 'Login Out',

tooltipErrorLog: 'Error log',
tooltipLock: 'Lock screen',
tooltipNotify: 'Notification',

tooltipEntryFull: 'Full Screen',
tooltipExitFull: 'Exit Full Screen',

// lock
lockScreenPassword: 'Lock screen password',
lockScreen: 'Lock screen',
lockScreenBtn: 'Locking',

home: 'Home',
},
multipleTab: {
reload: 'Refresh current',
close: 'Close current',
closeLeft: 'Close Left',
closeRight: 'Close Right',
closeOther: 'Close Other',
closeAll: 'Close All',
},
setting: {
// content mode
contentModeFull: 'Full',
contentModeFixed: 'Fixed width',
// topMenu align
topMenuAlignLeft: 'Left',
topMenuAlignRight: 'Center',
topMenuAlignCenter: 'Right',
// menu trigger
menuTriggerNone: 'Not Show',
menuTriggerBottom: 'Bottom',
menuTriggerTop: 'Top',
// menu type
menuTypeSidebar: 'Left menu mode',
menuTypeMixSidebar: 'Left menu mixed mode',
menuTypeMix: 'Top Menu Mix mode',
menuTypeTopMenu: 'Top menu mode',

on: 'On',
off: 'Off',
minute: 'Minute',

operatingTitle: 'Successful!',
operatingContent:
'The copy is successful, please go to src/settings/projectSetting.ts to modify the configuration!',
resetSuccess: 'Successfully reset!',

copyBtn: 'Copy',
clearBtn: 'Clear cache and to the login page',

drawerTitle: 'Configuration',

darkMode: 'Dark mode',
navMode: 'Navigation mode',
interfaceFunction: 'Interface function',
interfaceDisplay: 'Interface display',
animation: 'Animation',
splitMenu: 'Split menu',
closeMixSidebarOnChange: 'Switch page to close menu',

sysTheme: 'System theme',
headerTheme: 'Header theme',
sidebarTheme: 'Menu theme',

menuDrag: 'Drag Sidebar',
menuSearch: 'Menu search',
menuAccordion: 'Sidebar accordion',
menuCollapse: 'Collapse menu',
collapseMenuDisplayName: 'Collapse menu display name',
topMenuLayout: 'Top menu layout',
menuCollapseButton: 'Menu collapse button',
contentMode: 'Content area width',
expandedMenuWidth: 'Expanded menu width',

breadcrumb: 'Breadcrumbs',
breadcrumbIcon: 'Breadcrumbs Icon',
tabs: 'Tabs',
tabsQuickBtn: 'Tabs quick button',
tabsRedoBtn: 'Tabs redo button',
tabsFoldBtn: 'Tabs flod button',
sidebar: 'Sidebar',
header: 'Header',
footer: 'Footer',
fullContent: 'Full content',
grayMode: 'Gray mode',
colorWeak: 'Color Weak Mode',

progress: 'Progress',
switchLoading: 'Switch Loading',
switchAnimation: 'Switch animation',
animationType: 'Animation type',

autoScreenLock: 'Auto screen lock',
notAutoScreenLock: 'Not auto lock',

fixedHeader: 'Fixed header',
fixedSideBar: 'Fixed Sidebar',

mixSidebarTrigger: 'Mixed menu Trigger',
triggerHover: 'Hover',
triggerClick: 'Click',

mixSidebarFixed: 'Fixed expanded menu',
},
};
4 changes: 0 additions & 4 deletions src/locales/lang/en/layout/footer.ts

This file was deleted.

19 changes: 0 additions & 19 deletions src/locales/lang/en/layout/header.ts

This file was deleted.

Loading

0 comments on commit c04e894

Please sign in to comment.