fix: sync locales list

Co-authored-by: norm <normandy@biribiri.dev>
This commit is contained in:
Johann150 2022-07-13 11:43:13 +02:00
parent 17c752811f
commit 337b9a5392
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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