Repository navigation
Add Russian translation (l10n part 2/2) - #146
Merged
foureight84 merged 2 commits intoNov 15, 2026
Merged
Conversation
added 2 commits
November 14, 2026 15:48
English output is unchanged: values/strings.xml carries the original copy verbatim, and the existing unit tests pass without modification. - Composables use stringResource / pluralStringResource. Code without a Context goes through util/L10n, which in JVM tests reads the default values/strings.xml directly. - util/LocaleFormats picks date/time patterns from Android's best-pattern skeletons, falling back to the original pattern when java.time or SimpleDateFormat rejects the platform's one (zh-TW "Bh:mm" on Android 12/13). Patterns and formatters are cached per (skeleton, locale). - coach/context/CoachLanguage reads the coach_language resource, so the coach replies in the language the UI actually resolved. For English the directive is empty and prompts are byte-for-byte unchanged. Coach summary signatures carry the language, so a language switch regenerates cards. - Strings that would otherwise stick after a per-app language switch (tool progress labels, threshold units, the sleep no-data card) are resolved on read. - Coach chart colours also match a translation's own metric words.
- values-ru/strings.xml covers every string in values/strings.xml (except app_name), with Russian plural forms wherever a count precedes a noun. - coach_language = "Russian", so the coach replies in Russian when the app shows Russian. - res/xml/locales_config.xml enables the Android 13+ per-app language picker. - README.ru.md, linked from README.md. - Onboarding welcome tiles grow to fit a wrapped title instead of clipping it at a fixed height; the Russian titles surfaced this.
Owner
|
Thank you @g4st3r-d3v! Verified all 1,115 translated |
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.
Part 2 of 2, stacked on #145. Until #145 is merged, only the last commit ("Add Russian translation") is new here.
values-ru/strings.xmlcovers every string invalues/strings.xmlexceptapp_name, with Russian plural forms (one/few/many/other) wherever a number precedes a noun.coach_language=Russian, so the coach replies in Russian when the app shows Russian.res/xml/locales_config.xml(en, ru) plusandroid:localeConfigfor the Android 13+ per-app language picker.README.ru.md, linked from one line at the top ofREADME.md.If you set up Weblate, this file can be imported as the first language as-is.
Tested with
testDebugUnitTestandassembleDebug. I checked the Russian build on my phone.🤖 Generated with Claude Code