refactor(i18n): restructure locale keys around spaces#702
Merged
antonreshetov merged 7 commits intomainfrom Mar 27, 2026
Merged
refactor(i18n): restructure locale keys around spaces#702antonreshetov merged 7 commits intomainfrom
antonreshetov merged 7 commits intomainfrom
Conversation
Compares all locale bundles against en_US reference, reports missing keys per locale and namespace.
Renamed copy:locales → i18n:copy, added i18n:check. All i18n scripts now live under scripts/i18n/.
- Add common group for shared sidebar concepts (inbox, favorites, trash, etc.) - Nest spaces keys (spaces.code.label instead of spaces.code) - Move mathNotebook keys into spaces.math - Remove ~25 unused keys (button.clear, snippet.plural, loading, etc.) - Delete sidebar and mathNotebook groups (all migrated)
Update all i18n.t() calls to match new key structure:
- sidebar.* → common.* / spaces.{id}.*
- spaces.code → spaces.code.label (flat → nested)
- mathNotebook.* → spaces.math.*
- fragment → common.fragment
- total → common.total
- Apply same ui.json restructure to 16 locales (common, nested spaces) - Add missing keys in menu.json, messages.json, preferences.json with en_US fallback values - All locales now fully in sync with en_US reference
Translate all English fallback values in ru_RU locale: - ui.json: spaces labels, notes, actions, placeholders - menu.json: mathNotebook, window - messages.json: language reload description - preferences.json: notesEditor section, theme options
Add section describing the spaces-based key hierarchy and a quick reference table for where to place new keys.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.