From 97048386696da1d2f281475348d7c8c2b678e3c8 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 6 Sep 2021 10:54:03 -0400 Subject: [PATCH] Fixing missing arabic. Fixes #404 --- src/shared/utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/utils.ts b/src/shared/utils.ts index f54e2592..642bb755 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"; }