Adding as and lt languages.

This commit is contained in:
Dessalines 2022-01-09 12:57:39 -05:00
parent 3621325ac7
commit 534b0f7398
2 changed files with 10 additions and 0 deletions

View File

@ -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 {

View File

@ -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";
}