MediaWiki:Gadget-I18n-js.js: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
Remove ES6 syntax
No edit summary
(Remove ES6 syntax)
Line 547: Line 547:
         * @var {string} fallbackLang
         * @var {string} fallbackLang
         */
         */
        for (var fallbackLang of fallbacks[lang]) {
for (var i = 0; i < fallbacks.length; i += 1) {
var fallbackLang = fallbacks[lang][i];
             if (messages[fallbackLang] && messages[fallbackLang][msgName]) {
             if (messages[fallbackLang] && messages[fallbackLang][msgName]) {
                 return messages[fallbackLang][msgName];
                 return messages[fallbackLang][msgName];
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.