fix futhark spacing

This commit is contained in:
Ivan Evans 2025-01-03 17:33:33 -07:00
parent 7f687114fa
commit ae1fda0549

View file

@ -188,7 +188,14 @@ export function getCountryCodeForLocale(locale: string): string | null {
export function getLocaleInfo(locale: string): LocaleInfo | null {
const realLocale = populateLanguageCode(locale);
const extraLang = extraLanguages[realLocale];
if (extraLang) return extraLang;
if (extraLang) {
if (extraLang.code === "futhark") {
document.body.style.wordSpacing = "5px";
} else {
document.body.style.wordSpacing = "normal";
}
return extraLang;
}
const tag = getTag(realLocale, true);
if (!tag?.language?.Subtag) return null;