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:
Yuriy Panov committed 2026-10-15 21:49:01 +06:00
1 parent 52ad4a2e90
commit ff41887f30
35 files changed
+1073 -308

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ mod library;
mod models;
mod wave;
pub use client::{Account, YmClient};
pub use client::{Account, ContentLanguage, YmClient};
pub use clips::Clip;
pub use library::{
AlbumKind, AlbumPage, AlbumSummary, ArtistPage, ArtistSummary, LibraryPlaylists, PlaylistId,