Skip to content

fix(app): complete Russian translations for current interface - #61361

Open
krotname wants to merge 5 commits into
anomalyco:devfrom
krotname:app-russian
Open

krotname wants to merge 5 commits into
anomalyco:devfrom
krotname:app-russian

Conversation

@krotname

@krotname krotname commented Nov 3, 2026 •

Copy link
Copy Markdown

Issue for this PR

Refs #50164 and #53384; follows up on #50165.

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Documentation

What does this PR do?

Current dev still leaves project browsing, folder selection and provider-removal confirmations in English when Russian is selected. Add the 18 missing app catalog keys and the Russian few/many forms for the provider-disconnection warning. Keep the current upstream app and shared UI translations.

Catalog tests check English-key coverage and interpolation placeholders across app, native desktop and shared UI strings. Russian plural cases cover zero, one, few, many, teens, 21/22/25 and fractions for connection counts and the disconnection warning.

The branch includes current dev through eeeeaa0db3c18567bccbd2fca68b9cc6fe6227ee. The remaining PR diff is two files, +89/-4; no workflow, dependency or runtime behavior changes.

How did you verify your code works?

In an isolated Linux container on Bun 1.4.4:

  • Frozen dependency install passed.
  • All i18n tests: 54 passed, 0 failed, 2441 assertions across three files.
  • App typecheck:tsc passed.
  • Prettier checks passed for all changed files.
  • Scoped git diff --check passed.

Screenshots / recordings

Catalog and test changes only; no layout changes.

Checklist

  • I have tested my changes.
  • This PR contains no unrelated changes.

Added by the opencode bot (AI-generated).

Fixes #53384

Related: #53384

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change works: with the PR, choosing Russian translates the parts of Preferences that are still English on the base (tab layout cards, permission descriptions and more). I checked the app and UI Russian catalogs against en.ts with a script: no keys are missing, placeholders match, and the Russian plural forms are in place. The i18n unit tests (31) and typecheck:tsc pass, and the new e2e test passed repeatedly in Chromium.

Public API: unchanged (only translation strings and tests).

The only thing worth changing is the new e2e test (inline comment).

Related: #53384

Before

After

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My earlier point is addressed: the e2e test with its fixed-path screenshots has been removed. The new compaction usage label keeps both placeholders, which matches the only place it is used. The i18n unit tests still pass (31). Public API: unchanged (translation strings only). Nothing else to flag.

@krotname

Copy link
Copy Markdown
Author

The review feedback is addressed, and both checks pass on 13cf1cb.

@Hona @Brendonovich, could one of you review this when you have a chance? The changes are limited to the app/UI Russian catalogs and their unit tests.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The remaining catalog changes look right. I checked them against the latest dev: the 18 added keys exist in en.ts, are missing from Russian on dev, keep the English placeholders, and do not duplicate anything. The #53384 reproduction prints в/из on the base and Вход: … · выход: … with this PR. The i18n tests (50) and the app typecheck:tsc pass. Public API: unchanged (translation strings and tests only).

One thing to change before merge: the Russian coverage check in language.test.ts (expect([...source.keys()].filter((key) => !translated.has(key))).toEqual([])) fails whenever an English key has no Russian translation. packages/app/AGENTS.md says feature work should add English strings only and leave other languages missing, so English shows instead. As written, every future PR that adds English copy would break this test until someone translates it into Russian. Please drop the missing-key assertion, or limit it to keys that have a Russian value, and keep the placeholder and plural checks.

@krotname

Copy link
Copy Markdown
Author

Addressed the English-fallback review point in 1a0036f. The catalog test now checks placeholders only when a Russian translation exists; it no longer requires every English key to be translated. Russian few/many placeholder checks and the plural-form cases remain.

Validation: 64 targeted i18n tests pass, app typecheck:tsc and Prettier pass. An extra English-only key passes the check; adding a Russian value with an incorrect placeholder still fails it. Both upstream checks pass for this exact head.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My earlier point is addressed: the catalog test no longer requires a Russian translation for every English key, so it is in line with packages/app/AGENTS.md. It still checks placeholders and plural forms for every key that has a Russian value. The i18n tests pass (50). Public API: unchanged (translation strings and tests only). Nothing else to flag.

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.

Russian compaction usage labels use unclear literal in/out translations

1 participant