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

summaryrefslogtreecommitdiffhomepage
path: root/apps/api/Program.cs
diff options
context:
space:
mode:
authorLeitwolf112026-10-03 00:20:50 +0300
committerLeitwolf112026-10-03 00:20:50 +0300
commit35158de28f4a0dfc300f2d3b5787d2064a06105c (patch)
tree6de90563234dce7c9c55576660e8c06ef0155275 /apps/api/Program.cs
parentbcf10c927358157bedf6ab09ff6bff0a8aa86a14 (diff)
downloadprogmaweb-35158de28f4a0dfc300f2d3b5787d2064a06105c.tar.gz
Switch language in place and add Russian
The language control no longer reloads the page. It calls a server action that stores the preference cookie; Next.js then renders the current route again and applies it in place, so scroll position, theme and client state stay. The lang query parameter remains for links and for browsers without script, and is the fallback when the action cannot reach the server. Both paths write the cookie with the same attributes from one function. The toggle button is now a language menu, a native select that lists each language by its own name, and Russian (ru-RU) is the third locale with a complete translation of every message. Tests require every locale to have exactly the message shape of the default locale with no empty text, and cover the cookie attributes and host normalization. Verified locally: prettier, eslint, type check, tests, the production build, and a browser run on the apex and ViGet hosts where the language changed with no navigation and the scroll position kept.
Diffstat (limited to 'apps/api/Program.cs')
0 files changed, 0 insertions, 0 deletions