chore: copy langmap to backend

This commit is contained in:
naskya 2023-12-27 05:53:25 +09:00
parent 486c4a13bc
commit f8b45339fd
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -1,4 +1,4 @@
// TODO: sharedに置いてフロントエンドのと統合したい // TODO: sharedに置いてバックエンドのと統合したい
export const iso639Langs1 = { export const iso639Langs1 = {
af: { af: {
nativeName: "Afrikaans", nativeName: "Afrikaans",
@ -8,6 +8,7 @@ export const iso639Langs1 = {
}, },
ar: { ar: {
nativeName: "العربية", nativeName: "العربية",
rtl: true,
}, },
ay: { ay: {
nativeName: "Aymar aru", nativeName: "Aymar aru",
@ -65,6 +66,7 @@ export const iso639Langs1 = {
}, },
fa: { fa: {
nativeName: "فارسی", nativeName: "فارسی",
rtl: true,
}, },
ff: { ff: {
nativeName: "Fulah", nativeName: "Fulah",
@ -101,6 +103,7 @@ export const iso639Langs1 = {
}, },
he: { he: {
nativeName: "עברית‏", nativeName: "עברית‏",
rtl: true,
}, },
hi: { hi: {
nativeName: "हिन्दी", nativeName: "हिन्दी",
@ -224,6 +227,7 @@ export const iso639Langs1 = {
}, },
ps: { ps: {
nativeName: "پښتو", nativeName: "پښتو",
rtl: true,
}, },
pt: { pt: {
nativeName: "Português", nativeName: "Português",
@ -299,6 +303,7 @@ export const iso639Langs1 = {
}, },
ur: { ur: {
nativeName: "اردو", nativeName: "اردو",
rtl: true,
}, },
uz: { uz: {
nativeName: "O'zbek", nativeName: "O'zbek",
@ -311,6 +316,7 @@ export const iso639Langs1 = {
}, },
yi: { yi: {
nativeName: "ייִדיש", nativeName: "ייִדיש",
rtl: true,
}, },
zh: { zh: {
nativeName: "中文", nativeName: "中文",
@ -354,6 +360,12 @@ export const iso639Langs3 = {
tok: { tok: {
nativeName: "Toki Pona", nativeName: "Toki Pona",
}, },
yue: {
nativeName: "粵語",
},
nan: {
nativeName: "閩南語",
},
}; };
export const langmapNoRegion = Object.assign({}, iso639Langs1, iso639Langs3); export const langmapNoRegion = Object.assign({}, iso639Langs1, iso639Langs3);
@ -365,18 +377,6 @@ export const iso639Regional = {
"zh-hant": { "zh-hant": {
nativeName: "中文(繁體)", nativeName: "中文(繁體)",
}, },
"zh-cn": {
nativeName: "中文(中国大陆)",
},
"zh-hk": {
nativeName: "中文(香港)",
},
"zh-sg": {
nativeName: "中文(新加坡)",
},
"zh-tw": {
nativeName: "中文(台灣)",
},
}; };
export const langmap = Object.assign({}, langmapNoRegion, iso639Regional); export const langmap = Object.assign({}, langmapNoRegion, iso639Regional);