Files
poli0981andClaude Opus 5.5 a95663a1f9 refactor(i18n): one LOCALES list and a third plural form
Groundwork for zh-CN and ro, with no new language yet (docs/07 §2, §5):

- resolve-locale.ts exports LOCALES; Locale is derived from it. dicts,
  TAGS, the storage allow-list and the Settings choices all follow it, the
  first two as Record<Locale, ...> so a missing table is a compile error.
- Dict is Localized<typeof dict>: plural branches may carry `few`.
  selectPluralForm keeps `few`; requiredPluralForms says which forms a
  locale's own Intl.PluralRules need.
- dictionaries.test.ts checks plural shape per locale, guards against
  locales that need zero/two/many, holds the endonyms equal, and pins
  the Dict type with @ts-expect-error cases.
- manifest.test.ts maps locales to _locales directories, rejects strays
  and caps appDesc at 132 characters; options, links and storage tests
  iterate LOCALES.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 19:31:50 +07:00
..