mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 13:05:48 +00:00
This commit is contained in:
parent
6f0e7aa290
commit
31a5cc6f1a
3 changed files with 14 additions and 6 deletions
|
|
@ -55,7 +55,7 @@ importers:
|
||||||
version: 24.2.3(typescript@5.9.2)
|
version: 24.2.3(typescript@5.9.2)
|
||||||
langs:
|
langs:
|
||||||
specifier: github:Stremio/nodejs-langs
|
specifier: github:Stremio/nodejs-langs
|
||||||
version: https://codeload.github.com/Stremio/nodejs-langs/tar.gz/24daad4e78c324fcc88d6673df3cd75348b2efdf
|
version: https://codeload.github.com/Stremio/nodejs-langs/tar.gz/e5a3af7d2dd556592cbfe7cf879c1064ed0081a1
|
||||||
lodash.debounce:
|
lodash.debounce:
|
||||||
specifier: 4.0.8
|
specifier: 4.0.8
|
||||||
version: 4.0.8
|
version: 4.0.8
|
||||||
|
|
@ -3051,8 +3051,8 @@ packages:
|
||||||
resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
|
resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
|
|
||||||
langs@https://codeload.github.com/Stremio/nodejs-langs/tar.gz/24daad4e78c324fcc88d6673df3cd75348b2efdf:
|
langs@https://codeload.github.com/Stremio/nodejs-langs/tar.gz/e5a3af7d2dd556592cbfe7cf879c1064ed0081a1:
|
||||||
resolution: {tarball: https://codeload.github.com/Stremio/nodejs-langs/tar.gz/24daad4e78c324fcc88d6673df3cd75348b2efdf}
|
resolution: {tarball: https://codeload.github.com/Stremio/nodejs-langs/tar.gz/e5a3af7d2dd556592cbfe7cf879c1064ed0081a1}
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
|
|
||||||
launch-editor@2.11.1:
|
launch-editor@2.11.1:
|
||||||
|
|
@ -8295,7 +8295,7 @@ snapshots:
|
||||||
|
|
||||||
kleur@3.0.3: {}
|
kleur@3.0.3: {}
|
||||||
|
|
||||||
langs@https://codeload.github.com/Stremio/nodejs-langs/tar.gz/24daad4e78c324fcc88d6673df3cd75348b2efdf: {}
|
langs@https://codeload.github.com/Stremio/nodejs-langs/tar.gz/e5a3af7d2dd556592cbfe7cf879c1064ed0081a1: {}
|
||||||
|
|
||||||
launch-editor@2.11.1:
|
launch-editor@2.11.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,10 @@
|
||||||
"name": "한국어",
|
"name": "한국어",
|
||||||
"codes": ["ko-KR", "kor"]
|
"codes": ["ko-KR", "kor"]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Lietuvių",
|
||||||
|
"codes": ["lt-LT", "ltu"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "македонски јазик",
|
"name": "македонски јазик",
|
||||||
"codes": ["mk-MK", "mkd"]
|
"codes": ["mk-MK", "mkd"]
|
||||||
|
|
@ -107,6 +111,10 @@
|
||||||
"name": "ဗမာစာ",
|
"name": "ဗမာစာ",
|
||||||
"codes": ["my-BM", "mya"]
|
"codes": ["my-BM", "mya"]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "नेपाली",
|
||||||
|
"codes": ["ne-NP", "nep"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Norsk bokmål",
|
"name": "Norsk bokmål",
|
||||||
"codes": ["nb-NO", "nob"]
|
"codes": ["nb-NO", "nob"]
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@ const all = langs.all().map((lang) => ({
|
||||||
label: lang.local,
|
label: lang.local,
|
||||||
alpha2: lang['1'],
|
alpha2: lang['1'],
|
||||||
alpha3: [lang['2'], lang['2B'], lang['2T'], lang['3']],
|
alpha3: [lang['2'], lang['2B'], lang['2T'], lang['3']],
|
||||||
locale: lang['locale'],
|
ietf: lang['ietf'],
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const find = (code: string) => {
|
const find = (code: string) => {
|
||||||
return all.find(({ alpha2, alpha3, locale }) => [alpha2, ...alpha3, locale].includes(code));
|
return all.find(({ alpha2, alpha3, ietf }) => [alpha2, ...alpha3, ietf].includes(code));
|
||||||
};
|
};
|
||||||
|
|
||||||
const label = (code: string) => {
|
const label = (code: string) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue