mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Add 7 new i18n languages
This commit is contained in:
@ -32,7 +32,8 @@ export const ServerUrl = "";
|
||||
|
||||
export const StaticBaseUrl = "https://cdn.casbin.org";
|
||||
|
||||
export const Countries = [{label: "English", key: "en", country: "US", alt: "English"},
|
||||
export const Countries = [
|
||||
{label: "English", key: "en", country: "US", alt: "English"},
|
||||
{label: "Español", key: "es", country: "ES", alt: "Español"},
|
||||
{label: "Français", key: "fr", country: "FR", alt: "Français"},
|
||||
{label: "Deutsch", key: "de", country: "DE", alt: "Deutsch"},
|
||||
@ -48,7 +49,13 @@ export const Countries = [{label: "English", key: "en", country: "US", alt: "Eng
|
||||
{label: "Türkçe", key: "tr", country: "TR", alt: "Türkçe"},
|
||||
{label: "لغة عربية", key: "ar", country: "SA", alt: "لغة عربية"},
|
||||
{label: "עִבְרִית", key: "he", country: "IL", alt: "עִבְרִית"},
|
||||
{label: "Filipino", key: "fi", country: "PH", alt: "Filipino"},
|
||||
{label: "Nederlands", key: "nl", country: "NL", alt: "Nederlands"},
|
||||
{label: "Polski", key: "pl", country: "PL", alt: "Polski"},
|
||||
{label: "Suomi", key: "fi", country: "FI", alt: "Suomi"},
|
||||
{label: "Svenska", key: "sv", country: "SE", alt: "Svenska"},
|
||||
{label: "Українська", key: "uk", country: "UA", alt: "Українська"},
|
||||
{label: "Қазақ", key: "kk", country: "KZ", alt: "Қазақ"},
|
||||
{label: "فارسی", key: "fa", country: "IR", alt: "فارسی"},
|
||||
];
|
||||
|
||||
export function getThemeData(organization, application) {
|
||||
|
@ -29,7 +29,13 @@ import ms from "./locales/ms/data.json";
|
||||
import tr from "./locales/tr/data.json";
|
||||
import ar from "./locales/ar/data.json";
|
||||
import he from "./locales/he/data.json";
|
||||
import nl from "./locales/nl/data.json";
|
||||
import pl from "./locales/pl/data.json";
|
||||
import fi from "./locales/fi/data.json";
|
||||
import sv from "./locales/sv/data.json";
|
||||
import uk from "./locales/uk/data.json";
|
||||
import kk from "./locales/kk/data.json";
|
||||
import fa from "./locales/fa/data.json";
|
||||
import * as Conf from "./Conf";
|
||||
import {initReactI18next} from "react-i18next";
|
||||
|
||||
@ -50,7 +56,13 @@ const resources = {
|
||||
tr: tr,
|
||||
ar: ar,
|
||||
he: he,
|
||||
nl: nl,
|
||||
pl: pl,
|
||||
fi: fi,
|
||||
sv: sv,
|
||||
uk: uk,
|
||||
kk: kk,
|
||||
fa: fa,
|
||||
};
|
||||
|
||||
function initLanguage() {
|
||||
@ -115,9 +127,27 @@ function initLanguage() {
|
||||
case "he":
|
||||
language = "he";
|
||||
break;
|
||||
case "nl":
|
||||
language = "nl";
|
||||
break;
|
||||
case "pl":
|
||||
language = "pl";
|
||||
break;
|
||||
case "fi":
|
||||
language = "fi";
|
||||
break;
|
||||
case "sv":
|
||||
language = "sv";
|
||||
break;
|
||||
case "uk":
|
||||
language = "uk";
|
||||
break;
|
||||
case "kk":
|
||||
language = "kk";
|
||||
break;
|
||||
case "fa":
|
||||
language = "fa";
|
||||
break;
|
||||
default:
|
||||
language = Conf.DefaultLanguage;
|
||||
}
|
||||
|
1033
web/src/locales/fa/data.json
Normal file
1033
web/src/locales/fa/data.json
Normal file
File diff suppressed because it is too large
Load Diff
1033
web/src/locales/kk/data.json
Normal file
1033
web/src/locales/kk/data.json
Normal file
File diff suppressed because it is too large
Load Diff
1033
web/src/locales/nl/data.json
Normal file
1033
web/src/locales/nl/data.json
Normal file
File diff suppressed because it is too large
Load Diff
1033
web/src/locales/pl/data.json
Normal file
1033
web/src/locales/pl/data.json
Normal file
File diff suppressed because it is too large
Load Diff
1033
web/src/locales/sv/data.json
Normal file
1033
web/src/locales/sv/data.json
Normal file
File diff suppressed because it is too large
Load Diff
1033
web/src/locales/uk/data.json
Normal file
1033
web/src/locales/uk/data.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user