mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 13:20:19 +08:00
feat: fix wrong Vietnamese flag (#1724)
* fix wrong Vietnam country code * fix wrong Vietnam country code * fix wrong Vietnam country code * fix wrong Vietnam country code
This commit is contained in:
@ -42,7 +42,7 @@ export const Countries = [{label: "English", key: "en", country: "US", alt: "Eng
|
||||
{label: "日本語", key: "ja", country: "JP", alt: "日本語"},
|
||||
{label: "한국어", key: "ko", country: "KR", alt: "한국어"},
|
||||
{label: "Русский", key: "ru", country: "RU", alt: "Русский"},
|
||||
{label: "TiếngViệt", key: "vi", country: "VI", alt: "TiếngViệt"},
|
||||
{label: "TiếngViệt", key: "vn", country: "VN", alt: "TiếngViệt"},
|
||||
];
|
||||
|
||||
export function getThemeData(organization, application) {
|
||||
|
@ -22,7 +22,7 @@ import id from "./locales/id/data.json";
|
||||
import ja from "./locales/ja/data.json";
|
||||
import ko from "./locales/ko/data.json";
|
||||
import ru from "./locales/ru/data.json";
|
||||
import vi from "./locales/vi/data.json";
|
||||
import vn from "./locales/vn/data.json";
|
||||
import * as Conf from "./Conf";
|
||||
import {initReactI18next} from "react-i18next";
|
||||
|
||||
@ -36,7 +36,7 @@ const resources = {
|
||||
ja: ja,
|
||||
ko: ko,
|
||||
ru: ru,
|
||||
vi: vi,
|
||||
vn: vn,
|
||||
};
|
||||
|
||||
function initLanguage() {
|
||||
@ -80,8 +80,8 @@ function initLanguage() {
|
||||
case "ru":
|
||||
language = "ru";
|
||||
break;
|
||||
case "vi":
|
||||
language = "vi";
|
||||
case "vn":
|
||||
language = "vn";
|
||||
break;
|
||||
default:
|
||||
language = Conf.DefaultLanguage;
|
||||
|
Reference in New Issue
Block a user