From: Dessalines Date: Mon, 6 Sep 2021 14:54:03 +0000 (-0400) Subject: Fixing missing arabic. Fixes #404 X-Git-Url: http://these/git/%22https:/image.com/%7BprofileRss%7D?a=commitdiff_plain;h=4137d47648121a19fcd44b0bdd7d0905b2b55014;p=lemmy-ui.git Fixing missing arabic. Fixes #404 --- diff --git a/src/shared/utils.ts b/src/shared/utils.ts index f54e259..642bb75 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -146,6 +146,7 @@ export const languages = [ { code: "sk" }, { code: "vi" }, { code: "pt" }, + { code: "ar" }, ]; export const themes = [ @@ -499,6 +500,8 @@ export function getMomentLanguage(): string { lang = "vi"; } else if (lang.startsWith("pt")) { lang = "pt"; + } else if (lang.startsWith("ar")) { + lang = "ar"; } else { lang = "en"; }