forked from FoundKeyGang/FoundKey
fix: sync locales list
Co-authored-by: norm <normandy@biribiri.dev>
This commit is contained in:
parent
17c752811f
commit
337b9a5392
1 changed files with 6 additions and 4 deletions
|
@ -17,8 +17,9 @@ const merge = (...args) => args.reduce((a, c) => ({
|
||||||
// For a language to be generated as a locale it has to be listed here.
|
// For a language to be generated as a locale it has to be listed here.
|
||||||
const languages = [
|
const languages = [
|
||||||
'ar-SA',
|
'ar-SA',
|
||||||
|
'bn-BD',
|
||||||
|
'ca-ES',
|
||||||
'cs-CZ',
|
'cs-CZ',
|
||||||
'da-DK',
|
|
||||||
'de-DE',
|
'de-DE',
|
||||||
'en-US',
|
'en-US',
|
||||||
'es-ES',
|
'es-ES',
|
||||||
|
@ -31,13 +32,14 @@ const languages = [
|
||||||
'kn-IN',
|
'kn-IN',
|
||||||
'ko-KR',
|
'ko-KR',
|
||||||
'nl-NL',
|
'nl-NL',
|
||||||
'no-NO',
|
|
||||||
'pl-PL',
|
'pl-PL',
|
||||||
'pt-PT',
|
'pt-PT',
|
||||||
'ru-RU',
|
'ru-RU',
|
||||||
'sk-SK',
|
'sk-SK',
|
||||||
'ug-CN',
|
'sv-SE',
|
||||||
|
'tr-TR',
|
||||||
'uk-UA',
|
'uk-UA',
|
||||||
|
'vi-VI',
|
||||||
'zh-CN',
|
'zh-CN',
|
||||||
'zh-TW',
|
'zh-TW',
|
||||||
];
|
];
|
||||||
|
@ -57,7 +59,7 @@ const locales = languages.reduce(
|
||||||
|
|
||||||
module.exports = Object.entries(locales)
|
module.exports = Object.entries(locales)
|
||||||
.reduce((acc, [lang, strings]) => {
|
.reduce((acc, [lang, strings]) => {
|
||||||
if (k == 'en-US') {
|
if (lang == 'en-US') {
|
||||||
acc[lang] = strings;
|
acc[lang] = strings;
|
||||||
} else {
|
} else {
|
||||||
// all other locales fall back to en-US
|
// all other locales fall back to en-US
|
||||||
|
|
Loading…
Reference in a new issue