Repository navigation
feat(i18n): add Russian locale - #90
Merged
Merged
Conversation
Translate all ru namespaces, add the few plural category required by ru Intl.PluralRules across locales, and align the resolveLanguage fallback test.
Contributor
Author
Local verification before submissionFor reference, what was already run on the fork before opening this PR:
If you want, I can run the same checks against this branch once CI is visible on the upstream side. About the |
alvarolorentedev
approved these changes
Oct 29, 2026
Owner
|
hello @dev-drozd thanks a lot for the PR, I will merge it and release as soon as possible. Thans a lot again for your contribution :) |
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.
Summary
Adds Russian (
ru) as a shipped locale, translated across all eight namespaces.lib/i18n/locales/ru/:chat,common,notifications,onboarding,project,settings,share,terminallib/i18n/languages.ts:Русскийadded toSUPPORTED_LANGUAGESlib/i18n/resources.ts:ruresources registeredapp.config.ts:ruadded tosupportedLocalesfor iOS and Androiddocs/integrations-and-operations.md: shipped-locales list updatedPlural forms
Russian selects the
fewcategory for counts 2-4 and 22-24 (1 файл/2 файла/5 файлов), so therustrings provide_one,_few,_many, and_otherforms.The locale contract test requires every locale to expose the same key set, so
*_fewkeys were also added to the existingchat.jsonfiles foren,de,es,fr,hi,ja,pt, andzh, each mirroring that locale's*_othervalue. If you would rather relax the key-parity assertion instead of duplicating_fewfor non-Slavic locales, I am happy to rework that part.Testing
npm run test:ci:static: lint, typecheck, and 652 vitest tests passnpm run test:fake-server:self: V1 and V2 contract passesnpm run test:e2e:web: 162/162 Playwright flows passru-RU: onboarding renders fully in Russian, and plural forms were verified at runtime (1 файл,2 файла,5 файлов,21 файл,11 файлов)Notes
tests/vitest/i18n.test.tsusedruas an example of an unsupported language in the fallback assertion; it now usesxx/yy-YYsinceruis supported.