mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-10 02:15:11 +00:00
Adding as and lt languages.
This commit is contained in:
parent
3621325ac7
commit
534b0f7398
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue