diff options
| author | Leitwolf11 | 2026-10-03 01:43:43 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-10-03 01:43:43 +0300 |
| commit | f25c01f1d173b9e206565207472b58ca51f90803 (patch) | |
| tree | c4244396690eb895815b89802a8c5cb7261f47a9 /backend/src/test | |
| parent | 1045265e9ae018cb3d2d94a47d780888c26d04a2 (diff) | |
| download | website-feature/russian-locale.tar.gz | |
Add Russian to the language site and the forum placeholderfeature/russian-locale
Russian (ru-RU) is the third locale of the language site: the shell, the
home, overview and getting-started pages, and the page metadata are fully
translated, and the language menu offers it. The documentation sidebar reads
its labels from the page messages instead of a two-way locale test, and the
stored preference is accepted only when it names a supported locale.
The forum placeholder gets the same three languages. Its language control
is now a menu instead of a two-state button, and an unknown stored or
selected value keeps the current language.
The site API lists the new locale. Verified locally: prettier, the frontend
tests, vue-tsc and the Vite build, the backend tests, and a browser run of
the home and overview pages in Russian.
Diffstat (limited to 'backend/src/test')
| -rw-r--r-- | backend/src/test/kotlin/com/progmasoft/visual/xsharp/website/SiteControllerTest.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/test/kotlin/com/progmasoft/visual/xsharp/website/SiteControllerTest.kt b/backend/src/test/kotlin/com/progmasoft/visual/xsharp/website/SiteControllerTest.kt index ea190bd..6a7fd03 100644 --- a/backend/src/test/kotlin/com/progmasoft/visual/xsharp/website/SiteControllerTest.kt +++ b/backend/src/test/kotlin/com/progmasoft/visual/xsharp/website/SiteControllerTest.kt @@ -27,7 +27,7 @@ class SiteControllerTest( val body = response.contentAsString assertTrue(body.contains("\"name\":\"Visual X#\"")) assertTrue(body.contains("\"defaultLocale\":\"en-US\"")) - assertTrue(body.contains("\"supportedLocales\":[\"en-US\",\"de-DE\"]")) + assertTrue(body.contains("\"supportedLocales\":[\"en-US\",\"de-DE\",\"ru-RU\"]")) assertTrue(body.contains("\"forumOpen\":false")) assertFalse(body.contains("viget", ignoreCase = true)) } |