feat: Russian interface language
Adds an i18n module: strings stay in English in the code and are looked
up as tr("…") or trf("… {} …", args), with Russian in i18n/ru.rs.
Includes Russian plurals, genitive month names, "4,1 млн"-style
compact numbers and localised durations. A test scans the sources and
fails on any string without a Russian entry.
A Language setting (match system, English, Русский) defaults to the
system's first preferred language. Yandex's own titles (genres, Home
blocks, station names) switch with it, through a client rebuilt in that
language. Long genre names now wrap instead of spilling over the next
tile. The app bundle declares en and ru localisations.
This commit is contained in:
1 parent
52ad4a2e90
commit
ff41887f30
35 files changed
+1073
-308
No files matched your search
Generated
+1
@@ -3005,6 +3005,7 @@ dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
"souvlaki",
|
||||
"sys-locale",
|
||||
"tokio",
|
||||
"ym-api",
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user