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
fix(i18n): retire four hand-rolled zh/en branches (#2871, part 1) (#2887)
Four surfaces picked their language with a hand-written `startsWith('zh')`
instead of the locale packs, so ja/ko/de/fr/es/pt/ru/ar silently rendered
English and the strings could never be translated without a code change.
- RecordTitleChip's private zh-CN/zh-TW dictionary is deleted. Its comment
claimed "components is i18n-free"; the package declares @object-ui/i18n and
the file it cites already uses it. All four keys already existed in all ten
packs — ten locales fixed, zero new translations, on a component that renders
on every record detail page.
- EnvironmentListToolbar's three CTA labels move to a new `environment.*`
namespace (added to all ten packs). This surface regressed once before for
the same reason (#844).
- StudioAiCopilot's dock title moves to the Studio catalog.
- StudioHomePage.relativeTime uses Intl.RelativeTimeFormat instead of five
ternaries: every locale, correct plurals, "yesterday"/「昨天」 rather than
"1d ago", and Arabic's dual form which a ternary cannot express.
EnvironmentListToolbar's tests now render inside a real I18nProvider — without
one `t()` returns the raw key, so the previous assertions on literal English
were asserting nothing.
0 commit comments