Skip to content

Commit 66da1ac

Browse files
Copilothotlong
andcommitted
fix(i18n): translate toolbarEnabledCount and add new common/form keys to all 10 locales
- Fix untranslated toolbarEnabledCount in all 9 non-English locales - Add common.selectOption and common.select keys to all 10 locales - Add form.createTitle, form.editTitle, form.createDescription, form.editDescription, form.saveRecord to all 10 locales Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/1e02cef1-b595-4316-86d4-24d7df245f95
1 parent 7712757 commit 66da1ac

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

packages/i18n/src/locales/en.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ const en = {
3232
noResults: 'No results found',
3333
required: 'Required',
3434
optional: 'Optional',
35+
selectOption: 'Select an option',
36+
select: 'Select...',
3537
},
3638
validation: {
3739
required: '{{field}} is required',
@@ -54,6 +56,11 @@ const en = {
5456
saveError: 'Failed to save',
5557
unsavedChanges: 'You have unsaved changes. Are you sure you want to leave?',
5658
stepOf: 'Step {{current}} of {{total}}',
59+
createTitle: 'Create {{object}}',
60+
editTitle: 'Edit {{object}}',
61+
createDescription: 'Add a new {{object}} to your database.',
62+
editDescription: 'Update details for {{object}}',
63+
saveRecord: 'Save Record',
5764
},
5865
table: {
5966
rowsPerPage: 'Rows per page',

packages/i18n/src/locales/zh.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ const zh = {
3232
noResults: '未找到结果',
3333
required: '必填',
3434
optional: '选填',
35+
selectOption: '请选择',
36+
select: '选择...',
3537
},
3638
validation: {
3739
required: '{{field}}不能为空',
@@ -54,6 +56,11 @@ const zh = {
5456
saveError: '保存失败',
5557
unsavedChanges: '您有未保存的更改,确定要离开吗?',
5658
stepOf: '第{{current}}步,共{{total}}步',
59+
createTitle: '新建{{object}}',
60+
editTitle: '编辑{{object}}',
61+
createDescription: '向数据库添加新的{{object}}。',
62+
editDescription: '更新{{object}}的详情',
63+
saveRecord: '保存记录',
5764
},
5865
table: {
5966
rowsPerPage: '每页行数',
@@ -586,7 +593,7 @@ const zh = {
586593
generalHint: '视图标题、描述和类型',
587594
toolbar: '工具栏',
588595
toolbarHint: '搜索、筛选、排序、分组和密度切换',
589-
toolbarEnabledCount: '{{count}} of {{total}} enabled',
596+
toolbarEnabledCount: '已启用 {{count}}/{{total}} ',
590597
navigationSection: '导航',
591598
navigationHint: '行点击行为和详情视图设置',
592599
records: '记录',

0 commit comments

Comments
 (0)