Repository navigation
i18n: add Russian (ru) locale - #1284
Open
betraalexandr wants to merge 1 commit into
Open
betraalexandr wants to merge 1 commit into
betraalexandr wants to merge 1 commit into
Conversation
Adds ru following i18n/README.md: all 3,956 entries translated and reviewed (Review: human), registered in lingui.config.ts, the bundled locale list, scripts/i18n.ts and the i18n tests, plus Russian glossary terms (ceiling, floor plan, room, unit, wall, walkthrough). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
What does this PR do?
Adds Russian (
ru) as a bundled locale, followingi18n/README.md.packages/editor/src/i18n/locales/ru/messages.po(+ compiledmessages.ts): all 3,956 entries translated, markedReview: human.lingui.config.ts,packages/editor/src/i18n/locales.ts,scripts/i18n.ts:ruadded to the locale lists.scripts/i18n.test.ts,scripts/i18n-literals.test.ts,packages/editor/src/i18n/locales.test.ts:ruadded to the locale lists and the locale-pack test.i18n/glossary.json: Russian forms forceiling,floor plan,room,unit,wall,walkthrough. (levelandscanare left out: Russian needs different words depending on context.)No copy, component or dependency changes. Plural messages use
one / few / many / other.How it was reviewed: translated with AI assistance using a project glossary, then reviewed in context by a native Russian speaker during daily use of the editor (including item search); marked
Review: human. Rare strings (e.g. some error messages) may not have been seen in the UI. Happy to adjust on feedback.How to test
bun install --frozen-lockfilebun run i18n:extractleaves no diff;bun run i18n:checkpasses;bun scripts/i18n.ts check --reviewedreports nothing forru.bun test scripts/i18n.test.ts scripts/i18n-literals.test.tsandbun test src/i18ninpackages/editorpass.?lang=ru.Screenshots / screen recording
None yet; can add if useful.
Checklist
bun devbiome checkon the touched files is clean)mainbranchDisclosure: prepared with the help of an AI agent (Claude Code). Run:
i18n:extract,i18n:check,i18n:literals -- check, the i18n script tests, thepackages/coreandpackages/editori18n tests,tsgo --noEmitinpackages/editor. Not run: the fullbun run ci.🤖 Generated with Claude Code
Note
Low Risk
Adds translations and config only; no runtime logic, security, or data-handling changes.
Overview
Adds Russian (
ru) as a shipped bundled language across the Lingui/i18n pipeline.lingui.config.ts,scripts/i18n.ts, andpackages/editor/src/i18n/locales.tsnow includeruin locale lists and register compiledrumessages with the editor pack.i18n/glossary.jsongains Russian architectural terms (e.g. room, wall, floor plan, unit) so tooling stays consistent with other locales.Tests in
locales.test.ts,i18n.test.ts, andi18n-literals.test.tsassert Russian coverage alongside existing target locales. Use?lang=ruto run the editor in Russian once the catalog files are present in the branch.Reviewed by Cursor Bugbot for commit 57c2b8e. Bugbot is set up for automated code reviews on this repo. Configure here.