Skip to content

Refactor/inline i18n - #9

Merged
otnc merged 7 commits into
mainfrom
refactor/inline-i18n
Aug 26, 2026
Merged

otnc merged 7 commits into
mainfrom
refactor/inline-i18n

Conversation

@otnc

@otnc otnc commented Aug 26, 2026

Copy link
Copy Markdown
Member

No description provided.

otnc added 7 commits August 26, 2026 09:31
Two synchronized locales/en.json + locales/ja.json files were error-prone
to keep in sync (every string needed a matching, correctly-nested edit in
both). t() now takes a Translations object (Record<Locale, string>)
directly instead of a dotted key looked up in a runtime-loaded catalog, so
each string can live right next to the code that uses it. Drops the
i18next/i18next-fs-backend dependencies along with the discovery/backend
machinery they required.
…ands

buildScopeCommand now takes a ScopeCommandDescriptions object built by each
of /settings, /server-settings and /admin, instead of a key-string prefix
looked up generically inside scope.ts.
Replaces the "drop a locales/<code>.json file" instructions, which no
longer apply now that translations live next to the code that uses them.
@otnc
otnc merged commit e8d368b into main Aug 26, 2026
4 checks passed
@otnc
otnc deleted the refactor/inline-i18n branch August 26, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant