Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/backend
diff options
context:
space:
mode:
authorLeitwolf112026-10-03 01:43:43 +0300
committerLeitwolf112026-10-03 01:43:43 +0300
commitf25c01f1d173b9e206565207472b58ca51f90803 (patch)
treec4244396690eb895815b89802a8c5cb7261f47a9 /backend
parent1045265e9ae018cb3d2d94a47d780888c26d04a2 (diff)
downloadwebsite-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')
-rw-r--r--backend/src/main/kotlin/com/progmasoft/visual/xsharp/website/SiteController.kt2
-rw-r--r--backend/src/test/kotlin/com/progmasoft/visual/xsharp/website/SiteControllerTest.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/src/main/kotlin/com/progmasoft/visual/xsharp/website/SiteController.kt b/backend/src/main/kotlin/com/progmasoft/visual/xsharp/website/SiteController.kt
index 8d486f4..707772d 100644
--- a/backend/src/main/kotlin/com/progmasoft/visual/xsharp/website/SiteController.kt
+++ b/backend/src/main/kotlin/com/progmasoft/visual/xsharp/website/SiteController.kt
@@ -25,7 +25,7 @@ class SiteController {
name = "Visual X#",
phase = "development",
defaultLocale = "en-US",
- supportedLocales = listOf("en-US", "de-DE"),
+ supportedLocales = listOf("en-US", "de-DE", "ru-RU"),
forumOpen = false,
)
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))
}