You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Fixed
11
11
12
+
-**Chinese language pack (zh.ts) untranslated key** (`@object-ui/i18n`): Fixed `console.objectView.toolbarEnabledCount` which was still in English (`'{{count}} of {{total}} enabled'`) — now properly translated to `'已启用 {{count}}/{{total}} 项'`. Also fixed the same untranslated key in all other 8 non-English locales (ja, ko, de, fr, es, pt, ru, ar).
13
+
14
+
-**Hardcoded English strings in platform UI** (`apps/console`, `@object-ui/fields`, `@object-ui/react`, `@object-ui/components`): Replaced hardcoded English strings with i18n `t()` calls:
15
+
- Console `App.tsx`: Modal dialog title (`"Create/Edit Contact"`), description (`"Add a new ... to your database."`), submitText (`"Save Record"`), and cancelText (`"Cancel"`) now use i18n keys.
16
+
-`SelectField`: Default placeholder `"Select an option"` now uses `t('common.selectOption')`.
17
+
-`LookupField`: Default placeholder `"Select..."` and search placeholder `"Search..."` now use i18n keys.
18
+
-`FieldFactory`: Default select option placeholder now uses `t('common.selectOption')`.
19
+
- Form renderer: Default select placeholder now uses `t('common.selectOption')`.
20
+
21
+
### Added
22
+
23
+
-**New i18n keys for select/form components** (`@object-ui/i18n`): Added new translation keys across all 10 locale packs:
24
+
-`common.selectOption` — Default select field placeholder (e.g., '请选择' in Chinese)
25
+
-`common.select` — Short select placeholder (e.g., '选择...' in Chinese)
26
+
-`form.createTitle` — Form dialog create title with interpolation (e.g., '新建{{object}}' in Chinese)
27
+
-`form.editTitle` — Form dialog edit title with interpolation
28
+
-`form.createDescription` — Form dialog create description with interpolation
29
+
-`form.editDescription` — Form dialog edit description with interpolation
30
+
-`form.saveRecord` — Save record button text
31
+
32
+
-**Safe translation hook for field widgets** (`@object-ui/fields`): Added `useFieldTranslation` hook that provides fallback to English defaults when no `I18nProvider` is available, following the same pattern as `useDetailTranslation` in `@object-ui/plugin-detail`.
33
+
34
+
### Fixed
35
+
12
36
-**ObjectView ChatterPanel test assertion mismatch** (`apps/console`): Fixed the failing CI test in `ObjectView.test.tsx` where the RecordChatterPanel drawer test used `getByLabelText('Show discussion')` but the actual aria-label rendered by the component is `'Show Discussion (0)'` (from the i18n default translation `detail.showDiscussion` with count parameter). Updated the test assertion to match the correct aria-label.
0 commit comments