use runes mode, allow switching locale without js

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-07-24 16:50:32 +03:00
parent ee4b8a1d50
commit 897d445cdc
9 changed files with 41 additions and 28 deletions

View File

@@ -181,7 +181,7 @@ class Localizer {
// set next locale as the new current locale
this.current.set(get(this.next));
document.cookie = `locale=${get(this.next).code}`;
document.cookie = `locale=${get(this.next).code};`;
// get the next locale based on the index
if (indx === this.list.length - 1) {