From: Dessalines Date: Sun, 9 Jan 2022 17:57:39 +0000 (-0500) Subject: Adding as and lt languages. X-Git-Url: http://these/git/%7B%60/feeds/front/static/%7BpictrsAvatarThumbnail%28this.state.siteRes.site.icon%29%7D?a=commitdiff_plain;h=534b0f7398b97dbd7a85f466a6e4a1162bedc8ad;p=lemmy-ui.git Adding as and lt languages. --- 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"; }