Skip to content

Commit

Permalink
feat: Transfer、TreeSelect、Upload add i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
hangaoke1 committed Dec 31, 2020
1 parent fcab015 commit 824e5f9
Show file tree
Hide file tree
Showing 11 changed files with 1,665 additions and 1,307 deletions.
25 changes: 24 additions & 1 deletion source/components/Locale/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,30 @@ const LocaleValue: LocaleProperties = {
},
Table: {
filterTitle: 'filters',
}
},
Transfer: {
notFoundContent: 'No Data',
sourceNotFoundContent: 'No Data',
targetNotFonudContent: 'No Data',
searchPlaceholder: 'Search here',
},
TreeSelect: {
placeholder: 'Please select',
searchPlaceholder: 'Search here',
treeNodeResetTitle: 'Do not select any category',
notFoundContent: 'No Data',
okText: 'Ok',
cancelText: 'Cancel',
},
Upload: {
uploading: 'Uploading',
removeFile: 'Remove',
uploadError: 'UploadError',
previewFile: 'Preview',
cancelText: 'Cancel',
deleteText: 'DeleteAll',
uploadedTip: '${length} item uploaded'
},
}

export default LocaleValue;
5 changes: 4 additions & 1 deletion source/components/Locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export interface LocaleProperties {
Modal?: keyStringObj,
Form?: keyStringObj & {
defaultValidateMessages: keyStringObj,
}
},
Transfer?: keyStringObj,
TreeSelect?: keyStringObj,
Upload?: keyStringObj,
};

const Locale = {
Expand Down
23 changes: 23 additions & 0 deletions source/components/Locale/zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,29 @@ const localeValues: LocaleProperties = {
whitespace: '${label}不能为空字符',
},
},
Transfer: {
notFoundContent: '无匹配结果',
sourceNotFoundContent: '暂无相关信息',
targetNotFonudContent: '请从左侧选择添加',
searchPlaceholder: '请输入关键字',
},
TreeSelect: {
placeholder: '请选择',
searchPlaceholder: '请输入关键字',
treeNodeResetTitle: '不选择任何分类',
notFoundContent: '无匹配结果',
okText: '确定',
cancelText: '取消',
},
Upload: {
uploading: '上传中',
removeFile: '移除文件',
uploadError: '上传错误',
previewFile: '预览文件',
cancelText: '取消',
deleteText: '全部删除',
uploadedTip: '已上传 ${length} 项'
},
};

export default localeValues;
Loading

0 comments on commit 824e5f9

Please sign in to comment.