mirror of
https://github.com/sussy-code/smov.git
synced 2026-04-20 08:02:09 +00:00
fix futhark spacing
This commit is contained in:
parent
7f687114fa
commit
ae1fda0549
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue