feat: support 3 more language (#2163)

Signed-off-by: baihhh <2542274498@qq.com>
This commit is contained in:
Baihhh
2023-07-30 20:45:47 +08:00
committed by GitHub
parent 2fb9674171
commit 78dc660041
10 changed files with 3503 additions and 2 deletions

View File

@ -43,6 +43,9 @@ export const Countries = [{label: "English", key: "en", country: "US", alt: "Eng
{label: "Русский", key: "ru", country: "RU", alt: "Русский"},
{label: "TiếngViệt", key: "vi", country: "VN", alt: "TiếngViệt"},
{label: "Português", key: "pt", country: "BR", alt: "Português"},
{label: "Itariano", key: "it", country: "IT", alt: "Itariano"},
{label: "Marley", key: "ms", country: "MY", alt: "Marley"},
{label: "Tkiš", key: "tr", country: "TR", alt: "Tkiš"},
];
export function getThemeData(organization, application) {

View File

@ -24,6 +24,9 @@ import ko from "./locales/ko/data.json";
import ru from "./locales/ru/data.json";
import vi from "./locales/vi/data.json";
import pt from "./locales/pt/data.json";
import it from "./locales/it/data.json";
import ms from "./locales/ms/data.json";
import tr from "./locales/tr/data.json";
import * as Conf from "./Conf";
import {initReactI18next} from "react-i18next";
@ -39,6 +42,9 @@ const resources = {
ru: ru,
vi: vi,
pt: pt,
it: it,
ms: ms,
tr: tr,
};
function initLanguage() {
@ -88,6 +94,15 @@ function initLanguage() {
case "pt":
language = "pt";
break;
case "it":
language = "it";
break;
case "ms":
language = "ms";
break;
case "tr":
language = "tr";
break;
default:
language = Conf.DefaultLanguage;
}

1009
web/src/locales/it/data.json Normal file

File diff suppressed because it is too large Load Diff

1009
web/src/locales/ms/data.json Normal file

File diff suppressed because it is too large Load Diff

1009
web/src/locales/tr/data.json Normal file

File diff suppressed because it is too large Load Diff