Skip to content

Commit

Permalink
feat: 国际化完善,更新至1.11.1版本
Browse files Browse the repository at this point in the history
  • Loading branch information
nancyzhan committed Nov 11, 2024
1 parent 73da496 commit 3badc44
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fesjs/traction-widget",
"version": "1.11.0",
"version": "1.11.1",
"description": "集合大型中台项目使用到的通用组件和工具函数",
"scripts": {
"docs:dev": "npm run build && node docs/.vitepress/scripts/generate-doc.js && vitepress dev docs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
:width="600"
:maskClosable="false"
:getContainer="getContainer"
:okText="tableHeaderConfigLocalObj?.confirm"
:cancelText="tableHeaderConfigLocalObj?.cancel"
@ok="updateHeaders"
@cancel="reductionHeaders"
@update:show="$emit('update:show', $event)"
Expand Down
6 changes: 4 additions & 2 deletions packages/traction-widget/components/locales/lang/enUS.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
name: 'en',
name: 'en-US',
desc: '英文',
pageLoading: {
logout: 'Logout',
Expand All @@ -20,7 +20,9 @@ export default {
titleDesc: 'Set the fields to be displayed in the table',
selectedFields: 'Selected Fields',
optionalFields: 'Optional Fields',
noOptionalFields: 'No optional fields available'
noOptionalFields: 'No optional fields available',
cancel: 'Cancel',
confirm: 'Confirm'
},
TagSelector: {
clearAll: 'Clear All',
Expand Down
4 changes: 3 additions & 1 deletion packages/traction-widget/components/locales/lang/zhCN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export default {
titleDesc: '设置表格需要显示的字段信息',
selectedFields: '已选字段',
optionalFields: '可选字段',
noOptionalFields: '暂无可选字段'
noOptionalFields: '暂无可选字段',
cancel: '取消',
confirm: '确定'
},
TagSelector: {
clearAll: '全部删除',
Expand Down
2 changes: 1 addition & 1 deletion packages/traction-widget/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fesjs/traction-widget",
"version": "1.11.0",
"version": "1.11.1",
"description": "集合大型中台项目使用到的通用组件和工具函数",
"main": "dist/traction-widget.min.js",
"module": "es/components/index.js",
Expand Down

0 comments on commit 3badc44

Please sign in to comment.