From 534b0f7398b97dbd7a85f466a6e4a1162bedc8ad Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Sun, 9 Jan 2022 12:57:39 -0500
Subject: [PATCH] Adding as and lt languages.

---
 src/shared/i18next.ts | 4 ++++
 src/shared/utils.ts   | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/src/shared/i18next.ts b/src/shared/i18next.ts
index 64934ea..cc7e441 100644
--- a/src/shared/i18next.ts
+++ b/src/shared/i18next.ts
@@ -1,5 +1,6 @@
 import i18next, { i18nTyped } from "i18next";
 import { ar } from "./translations/ar";
+import { as } from "./translations/as";
 import { bg } from "./translations/bg";
 import { bn } from "./translations/bn";
 import { ca } from "./translations/ca";
@@ -26,6 +27,7 @@ import { ja } from "./translations/ja";
 import { ka } from "./translations/ka";
 import { km } from "./translations/km";
 import { ko } from "./translations/ko";
+import { lt } from "./translations/lt";
 import { ml } from "./translations/ml";
 import { mnc } from "./translations/mnc";
 import { nb_NO } from "./translations/nb_NO";
@@ -95,6 +97,8 @@ const resources = {
   bn,
   ml,
   cs,
+  as,
+  lt,
 };
 
 function format(value: any, format: any): any {
diff --git a/src/shared/utils.ts b/src/shared/utils.ts
index cdbc7cd..422beac 100644
--- a/src/shared/utils.ts
+++ b/src/shared/utils.ts
@@ -161,6 +161,8 @@ export const languages = [
   { code: "bn" },
   { code: "ml" },
   { code: "cs" },
+  { code: "as" },
+  { code: "lt" },
 ];
 
 export const themes = [
@@ -553,6 +555,10 @@ export function getMomentLanguage(): string {
     lang = "ml";
   } else if (lang.startsWith("cs")) {
     lang = "cs";
+  } else if (lang.startsWith("as")) {
+    lang = "as";
+  } else if (lang.startsWith("lt")) {
+    lang = "lt";
   } else {
     lang = "en";
   }
-- 
2.44.1