Update index.js

This commit is contained in:
Acid Chicken (硫酸鶏) 2019-03-07 16:43:16 +09:00 committed by GitHub
parent 13205d11ac
commit aacae867fc

View file

@ -28,6 +28,7 @@ const languages = [
const primaries = { const primaries = {
'ja': 'JP', 'ja': 'JP',
'zh': 'CN',
}; };
const locales = languages.reduce((a, c) => (a[c] = yaml.safeLoad(fs.readFileSync(`${__dirname}/${c}.yml`, 'utf-8')) || {}, a), {}); const locales = languages.reduce((a, c) => (a[c] = yaml.safeLoad(fs.readFileSync(`${__dirname}/${c}.yml`, 'utf-8')) || {}, a), {});