Apply defaults for untranslated pages too

since we’ll need them for nav/footer strings
This commit is contained in:
Matthew Taylor 2017-05-23 13:16:46 -04:00
parent 30bd5e435d
commit bab863cd14

View file

@ -208,6 +208,7 @@ async.forEachLimit(views, 5, function (view, cb) {
process.stdout.write('No translations for ' + view + isoCode + ', using english\n'); process.stdout.write('No translations for ' + view + isoCode + ', using english\n');
} }
viewLocales[isoCode] = merge({}, generalLocales[isoCode], defaultLocales[view]); viewLocales[isoCode] = merge({}, generalLocales[isoCode], defaultLocales[view]);
defaults(viewLocales[isoCode], generalLocales['en']);
} }
return cb(); return cb();
} else { } else {