mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
feat: support 3 more language (#2163)
Signed-off-by: baihhh <2542274498@qq.com>
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user