MediaWiki:Gadget-I18n-js.js: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
Fix typo
(Remove ES6 syntax) |
(Fix typo) |
||
Line 547: | Line 547: | ||
* @var {string} fallbackLang | * @var {string} fallbackLang | ||
*/ | */ | ||
for (var i = 0; i < fallbacks.length; i += 1) { | for (var i = 0; i < fallbacks[lang].length; i += 1) { | ||
var fallbackLang = fallbacks[lang][i]; | var fallbackLang = fallbacks[lang][i]; | ||
if (messages[fallbackLang] && messages[fallbackLang][msgName]) { | if (messages[fallbackLang] && messages[fallbackLang][msgName]) { |