feat: Persian locale + RTL initial support + browser locales fixes

This commit is contained in:
Nicolas Giard
2017-09-14 21:04:52 -04:00
committed by GitHub
parent 6e4fba8012
commit 7957a12216
31 changed files with 535 additions and 24 deletions

View File

@@ -76,7 +76,7 @@ module.exports = Promise.mapSeries([
return Promise.map(langs, lang => {
console.info(colors.white(' ' + lang + '.json'))
let outputPath = path.join('./assets/js/i18n', lang + '.json')
return fs.readJsonAsync(path.join('./server/locales', lang + 'browser.json'), 'utf8').then((content) => {
return fs.readJsonAsync(path.join('./server/locales', lang, 'browser.json'), 'utf8').then((content) => {
return fs.outputJsonAsync(outputPath, _.defaultsDeep(content, enContent))
}).catch(err => { // eslint-disable-line handle-callback-err
return fs.outputJsonAsync(outputPath, enContent)