mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-24 18:15:20 +00:00
Adding thai language.
This commit is contained in:
parent
2e2b18c717
commit
aea005b4cc
|
@ -31,6 +31,7 @@ import { sr_Latn } from "./translations/sr_Latn";
|
|||
import { da } from "./translations/da";
|
||||
import { oc } from "./translations/oc";
|
||||
import { hr } from "./translations/hr";
|
||||
import { th } from "./translations/th";
|
||||
|
||||
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
|
||||
const resources = {
|
||||
|
@ -65,6 +66,7 @@ const resources = {
|
|||
da,
|
||||
oc,
|
||||
hr,
|
||||
th,
|
||||
};
|
||||
|
||||
function format(value: any, format: any): any {
|
||||
|
|
|
@ -118,6 +118,7 @@ export const languages = [
|
|||
{ code: "sv", name: "Svenska" },
|
||||
{ code: "sq", name: "Shqip" },
|
||||
{ code: "sr_Latn", name: "srpski" },
|
||||
{ code: "th", name: "ภาษาไทย" },
|
||||
{ code: "tr", name: "Türkçe" },
|
||||
{ code: "uk", name: "Українська Mова" },
|
||||
{ code: "ru", name: "Русский" },
|
||||
|
@ -445,6 +446,8 @@ export function getMomentLanguage(): string {
|
|||
lang = "oc";
|
||||
} else if (lang.startsWith("hr")) {
|
||||
lang = "hr";
|
||||
} else if (lang.startsWith("th")) {
|
||||
lang = "th";
|
||||
} else {
|
||||
lang = "en";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue