Messages: DRY things up a bit.

This commit is contained in:
lain 2020-06-09 09:26:46 +02:00
parent 99eaec8547
commit 44db3af0db

View File

@ -37,35 +37,7 @@ const loaders = {
}
const messages = {
languages: [
'ar',
'ca',
'cs',
'de',
'en',
'eo',
'es',
'et',
'eu',
'fi',
'fr',
'ga',
'he',
'hu',
'it',
'ja',
'ja_easy',
'ko',
'nb',
'nl',
'oc',
'pl',
'pt',
'ro',
'ru',
'te',
'zh'
],
languages: ['en', ...Object.keys(loaders)],
default: {
en: require('./en.json')
},