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: 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.
const languages = [
'ar-SA',
'bn-BD',
'ca-ES',
'cs-CZ',
'da-DK',
'de-DE',
'en-US',
'es-ES',
@ -31,13 +32,14 @@ const languages = [
'kn-IN',
'ko-KR',
'nl-NL',
'no-NO',
'pl-PL',
'pt-PT',
'ru-RU',
'sk-SK',
'ug-CN',
'sv-SE',
'tr-TR',
'uk-UA',
'vi-VI',
'zh-CN',
'zh-TW',
];
@ -57,7 +59,7 @@ const locales = languages.reduce(
module.exports = Object.entries(locales)
.reduce((acc, [lang, strings]) => {
if (k == 'en-US') {
if (lang == 'en-US') {
acc[lang] = strings;
} else {
// all other locales fall back to en-US