parent
0445d7c882
commit
d5411c9f88
@ -0,0 +1,44 @@
|
||||
|
||||
const languages = [
|
||||
'ar',
|
||||
'ca',
|
||||
'cs',
|
||||
'de',
|
||||
'eo',
|
||||
'en',
|
||||
'es',
|
||||
'et',
|
||||
'eu',
|
||||
'fi',
|
||||
'fr',
|
||||
'ga',
|
||||
'he',
|
||||
'hu',
|
||||
'it',
|
||||
'ja',
|
||||
'ja_easy',
|
||||
'ko',
|
||||
'nb',
|
||||
'nl',
|
||||
'oc',
|
||||
'pl',
|
||||
'pt',
|
||||
'ro',
|
||||
'ru',
|
||||
'sk',
|
||||
'te',
|
||||
'uk',
|
||||
'zh',
|
||||
'zh_Hant'
|
||||
]
|
||||
|
||||
const specialJsonName = {
|
||||
ja: 'ja_pedantic'
|
||||
}
|
||||
|
||||
const langCodeToJsonName = (code) => specialJsonName[code] || code
|
||||
|
||||
module.exports = {
|
||||
languages,
|
||||
langCodeToJsonName
|
||||
}
|
Loading…
Reference in new issue