Browse Source

fix: fix i18n translation

jacob-lcs 2 years ago
parent
commit
fd948c43c8
2 changed files with 78 additions and 4 deletions
  1. 4 4
      packages/semi-ui/locale/source/zh_CN.ts
  2. 74 0
      yarn.lock

+ 4 - 4
packages/semi-ui/locale/source/zh_CN.ts

@@ -5,8 +5,8 @@ const local: Locale = {
     code: 'zh-CN',
     dateFnsLocale: zhCN, // locale code to dateFns locale
     Pagination: {
-        pageSize: '${pageSize} 条/页',
-        total: '共 ${total} 页',
+        pageSize: '每页条数:${pageSize}',
+        total: '总页数:${total}',
         jumpTo: '跳至',
         page: '页',
     },
@@ -147,8 +147,8 @@ const local: Locale = {
         clear: '清空',
         selectAll: '全选',
         clearSelectAll: '取消全选',
-        total: '共 ${total} 项',
-        selected: '已选 ${total} 项',
+        total: '总个数:${total}',
+        selected: '已选个数:${total}',
     },
     Form: {
         optional: '(可选)',

+ 74 - 0
yarn.lock

@@ -1456,6 +1456,15 @@
   resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
   integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==
 
+"@douyinfe/[email protected]":
+  version "2.28.1"
+  resolved "https://registry.yarnpkg.com/@douyinfe/semi-animation-react/-/semi-animation-react-2.28.1.tgz#dee0fc346568f1225181d0546c57052271759254"
+  integrity sha512-6gSabXjw2LT+mbP5gXRLVslx5Jf/yI7h/dV8vPv461xy0TJzuGBINAQx0C9nnQrcgF4ra5AxHB4iSZAqNvx/iQ==
+  dependencies:
+    "@douyinfe/semi-animation" "2.12.0"
+    "@douyinfe/semi-animation-styled" "2.23.2"
+    classnames "^2.2.6"
+
 "@douyinfe/[email protected]":
   version "2.9.1"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-animation-react/-/semi-animation-react-2.9.1.tgz#f2e4c6ef7899729ee6145edf0579598ba195bfdd"
@@ -1486,6 +1495,13 @@
     "@babel/runtime-corejs3" "^7.15.4"
     bezier-easing "^2.1.0"
 
+"@douyinfe/[email protected]":
+  version "2.28.1"
+  resolved "https://registry.yarnpkg.com/@douyinfe/semi-animation/-/semi-animation-2.28.1.tgz#421ca0b571da13ba62fa22261c777cfd89a554fe"
+  integrity sha512-ChsTCjNwFEmZHv8Ip/Bm/hUnpYVVK0mT6W9pGpXB4UHe2TXowjeTdhNF9pthVFbdEqyXPTUVon9YHARemcoLmg==
+  dependencies:
+    bezier-easing "^2.1.0"
+
 "@douyinfe/[email protected]":
   version "2.9.1"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-animation/-/semi-animation-2.9.1.tgz#4345fd86823b51e7c6fb5e9079d8f5c3ffe608f8"
@@ -1494,6 +1510,20 @@
     "@babel/runtime-corejs3" "^7.15.4"
     bezier-easing "^2.1.0"
 
+"@douyinfe/[email protected]":
+  version "2.28.1"
+  resolved "https://registry.yarnpkg.com/@douyinfe/semi-foundation/-/semi-foundation-2.28.1.tgz#46299e69a5d7840d71439292c6a433ef359e0ee3"
+  integrity sha512-hEprE0FtwBrDIOjaJlfAYc2wcxi6n8lfPcfLzRgka3pcXaf0SFoOvDJg3IkmvfygmKVTiiQATDpON4NWyB11/w==
+  dependencies:
+    "@douyinfe/semi-animation" "2.12.0"
+    async-validator "^3.5.0"
+    classnames "^2.2.6"
+    date-fns "^2.9.0"
+    date-fns-tz "^1.0.10"
+    lodash "^4.17.21"
+    memoize-one "^5.2.1"
+    scroll-into-view-if-needed "^2.2.24"
+
 "@douyinfe/[email protected]":
   version "2.9.1"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-foundation/-/semi-foundation-2.9.1.tgz#1300bb97d6ceb92274ca4c9e6c66c5c16dc284ea"
@@ -1509,6 +1539,13 @@
     memoize-one "^5.2.1"
     scroll-into-view-if-needed "^2.2.24"
 
+"@douyinfe/[email protected]", "@douyinfe/semi-icons@^2.0.0":
+  version "2.28.1"
+  resolved "https://registry.yarnpkg.com/@douyinfe/semi-icons/-/semi-icons-2.28.1.tgz#83d449842972a07b55bf823af4558ab90b64c10e"
+  integrity sha512-UtZBqzSmzA5bEmiaSncqhkY2SNbxPbGlupgzDpCkm1Owt9gBUg8dDwdbaiYyXqIGBHyI9CvcDCzOBkrmQODtDg==
+  dependencies:
+    classnames "^2.2.6"
+
 "@douyinfe/[email protected]", "@douyinfe/semi-icons@latest":
   version "2.9.1"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-icons/-/semi-icons-2.9.1.tgz#7a04e1a77070220b04f63e6f65aac30155ed8ddd"
@@ -1517,6 +1554,11 @@
     "@babel/runtime-corejs3" "^7.15.4"
     classnames "^2.2.6"
 
+"@douyinfe/[email protected]":
+  version "2.28.1"
+  resolved "https://registry.yarnpkg.com/@douyinfe/semi-illustrations/-/semi-illustrations-2.28.1.tgz#c744804bbe9f2772d8d63e2cf99f9ab2c9c1fbe9"
+  integrity sha512-1UwUEFIXmUaEETON+9BChmnrdxdyIglldyZ6aK+1OPE9t6VJP/7dyGzRz9SAFsAIaKSUW6luDoHJDH+HGQWEqA==
+
 "@douyinfe/[email protected]":
   version "2.9.1"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-illustrations/-/semi-illustrations-2.9.1.tgz#1a448d1854ee1beeba57ea612da052b549ea105f"
@@ -1590,6 +1632,13 @@
     monaco-themes "^0.3.3"
     react-live "^2.2.2"
 
+"@douyinfe/[email protected]":
+  version "2.28.1"
+  resolved "https://registry.yarnpkg.com/@douyinfe/semi-theme-default/-/semi-theme-default-2.28.1.tgz#1318e2f99c3b89eaee5dc988059b43189e5c77cc"
+  integrity sha512-fLIzi7Q2eotZVY2I7RbRORalM8h/U1lIepbx4yI0mVMvqBXsDOS1v0jZ5EBP0cEWT6DChXnw/rWleNomzSrrew==
+  dependencies:
+    glob "^7.1.6"
+
 "@douyinfe/[email protected]":
   version "2.9.1"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-theme-default/-/semi-theme-default-2.9.1.tgz#734113e9783ca58b69afe1769005e7e57e5a4da7"
@@ -1597,6 +1646,31 @@
   dependencies:
     glob "^7.1.6"
 
+"@douyinfe/semi-ui@^2.0.0":
+  version "2.28.1"
+  resolved "https://registry.yarnpkg.com/@douyinfe/semi-ui/-/semi-ui-2.28.1.tgz#b11b8046279304f95baeb7d5e38111bb6a8c92d3"
+  integrity sha512-vXKAlZIrLyWEPvmwQydaWG+/wOFWp2GkVAMxpPGWU5bnMQv/bQ9/AX0aN6kYqwAUGF8L4NQBuHQxvkgpsEOaFA==
+  dependencies:
+    "@douyinfe/semi-animation" "2.28.1"
+    "@douyinfe/semi-animation-react" "2.28.1"
+    "@douyinfe/semi-foundation" "2.28.1"
+    "@douyinfe/semi-icons" "2.28.1"
+    "@douyinfe/semi-illustrations" "2.28.1"
+    "@douyinfe/semi-theme-default" "2.28.1"
+    async-validator "^3.5.0"
+    classnames "^2.2.6"
+    copy-text-to-clipboard "^2.1.1"
+    date-fns "^2.9.0"
+    date-fns-tz "^1.0.10"
+    lodash "^4.17.21"
+    prop-types "^15.7.2"
+    react-resizable "^1.8.0"
+    react-sortable-hoc "^2.0.0"
+    react-window "^1.8.2"
+    resize-observer-polyfill "^1.5.1"
+    scroll-into-view-if-needed "^2.2.24"
+    utility-types "^3.10.0"
+
 "@douyinfe/semi-ui@latest":
   version "2.9.1"
   resolved "https://registry.yarnpkg.com/@douyinfe/semi-ui/-/semi-ui-2.9.1.tgz#505d4783ea1fa73d307b75f62091030f1fee9332"