v3: localization fixes, char counters & limits on all text fields, ux fixes

This commit is contained in:
khannurien
2026-04-03 19:47:37 +00:00
parent 0ce80398a4
commit a69788c15b
48 changed files with 1133 additions and 305 deletions

View File

@@ -5,7 +5,9 @@ type Locale = (typeof SUPPORTED)[number];
function detectLocale(): Locale {
const stored = localStorage.getItem("locale");
if (stored && (SUPPORTED as readonly string[]).includes(stored)) return stored as Locale;
if (stored && (SUPPORTED as readonly string[]).includes(stored)) {
return stored as Locale;
}
return navigator.language.startsWith("fr") ? "fr" : "en";
}