diff options
Diffstat (limited to 'src/static/js/html10n.js')
-rw-r--r-- | src/static/js/html10n.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/static/js/html10n.js b/src/static/js/html10n.js index 19cf9de1..44abd7a0 100644 --- a/src/static/js/html10n.js +++ b/src/static/js/html10n.js @@ -681,9 +681,9 @@ window.html10n = (function(window, document, undefined) { // Expand two-part locale specs var i=0 langs.forEach(function(lang) { - if(!lang) return - langs[i++] = lang - if(~lang.indexOf('-')) langs[i++] = lang.substr(0, lang.indexOf('-')) + if(!lang) return; + langs[i++] = lang; + if(~lang.indexOf('-')) langs[i++] = lang.substr(0, lang.indexOf('-')); }) this.build(langs, function(er, translations) { |