fix spacing fix for futhark

This commit is contained in:
Ivan Evans 2025-01-04 16:40:39 -07:00
parent ae1fda0549
commit 9695b03d50

View file

@ -187,12 +187,13 @@ export function getCountryCodeForLocale(locale: string): string | null {
*/
export function getLocaleInfo(locale: string): LocaleInfo | null {
const realLocale = populateLanguageCode(locale);
document.body.style.wordSpacing = "normal";
const extraLang = extraLanguages[realLocale];
if (extraLang) {
if (extraLang.code === "futhark") {
document.body.style.wordSpacing = "5px";
} else {
document.body.style.wordSpacing = "normal";
}
return extraLang;
}