From 8e5bcf61058b3560c9cedabff13a0a6b7a08ff89 Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Thu, 1 Jun 2017 14:06:23 -0600
Subject: [PATCH] Fix #5727
---
src/meta/languages.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/meta/languages.js b/src/meta/languages.js
index 06c73ace2e..3cf1359f4a 100644
--- a/src/meta/languages.js
+++ b/src/meta/languages.js
@@ -107,15 +107,15 @@ function getTranslationTree(callback) {
// 2. old language string (en_GB)
// 3. corrected plugin defaultLang (en-US)
// 4. old plugin defaultLang (en_US)
- async.eachLimit(plugins, 10, function (pluginData, done) {
+ async.eachLimit(plugins, 20, function (pluginData, done) {
var pluginLanguages = path.join(__dirname, '../../node_modules/', pluginData.id, pluginData.languages);
var defaultLang = pluginData.defaultLang || 'en-GB';
- async.some([
- lang,
- lang.replace('-', '_').replace('-x-', '@'),
- defaultLang.replace('_', '-').replace('@', '-x-'),
+ async.eachSeries([
defaultLang.replace('-', '_').replace('-x-', '@'),
+ defaultLang.replace('_', '-').replace('@', '-x-'),
+ lang.replace('-', '_').replace('-x-', '@'),
+ lang,
], function (language, next) {
fs.readFile(path.join(pluginLanguages, language, namespace + '.json'), function (err, buffer) {
if (err) {