From 9695b03d50fc05c65692ddbe5c1c065351e7bbd1 Mon Sep 17 00:00:00 2001 From: Ivan Evans <74743263+Pasithea0@users.noreply.github.com> Date: Sat, 4 Jan 2025 16:40:39 -0700 Subject: [PATCH] fix spacing fix for futhark --- src/utils/language.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/language.ts b/src/utils/language.ts index 625fec58..ea6e1c68 100644 --- a/src/utils/language.ts +++ b/src/utils/language.ts @@ -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; }