Skip to content

i18n: add Russian (ru) locale - #1284

Open
betraalexandr wants to merge 1 commit into
pascalorg:mainfrom
betraalexandr:i18n-add-russian
Open

betraalexandr wants to merge 1 commit into
pascalorg:mainfrom
betraalexandr:i18n-add-russian

Conversation

@betraalexandr

@betraalexandr betraalexandr commented Nov 14, 2026 •

Copy link
Copy Markdown

What does this PR do?

Adds Russian (ru) as a bundled locale, following i18n/README.md.

  • packages/editor/src/i18n/locales/ru/messages.po (+ compiled messages.ts): all 3,956 entries translated, marked Review: human.
  • lingui.config.ts, packages/editor/src/i18n/locales.ts, scripts/i18n.ts: ru added to the locale lists.
  • scripts/i18n.test.ts, scripts/i18n-literals.test.ts, packages/editor/src/i18n/locales.test.ts: ru added to the locale lists and the locale-pack test.
  • i18n/glossary.json: Russian forms for ceiling, floor plan, room, unit, wall, walkthrough. (level and scan are 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

  1. bun install --frozen-lockfile
  2. bun run i18n:extract leaves no diff; bun run i18n:check passes; bun scripts/i18n.ts check --reviewed reports nothing for ru.
  3. bun test scripts/i18n.test.ts scripts/i18n-literals.test.ts and bun test src/i18n in packages/editor pass.
  4. Open the editor with ?lang=ru.

Screenshots / screen recording

None yet; can add if useful.

Checklist

  • I've tested this locally with bun dev
  • My code follows the existing code style (biome check on the touched files is clean)
  • I've updated relevant documentation (if applicable): none needed
  • This PR targets the main branch

Disclosure: prepared with the help of an AI agent (Claude Code). Run: i18n:extract, i18n:check, i18n:literals -- check, the i18n script tests, the packages/core and packages/editor i18n tests, tsgo --noEmit in packages/editor. Not run: the full bun 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, and packages/editor/src/i18n/locales.ts now include ru in locale lists and register compiled ru messages with the editor pack. i18n/glossary.json gains 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, and i18n-literals.test.ts assert Russian coverage alongside existing target locales. Use ?lang=ru to 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.

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

No deployments
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