mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Another fix for mongoose i18n locale object hack.
This commit is contained in:
parent
868a6ed43b
commit
843ed97643
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ module.exports.i18n = (say, target, language=me.lang(), fallback='en') ->
|
||||||
generalName = matches[0] if matches
|
generalName = matches[0] if matches
|
||||||
|
|
||||||
for localeName, locale of say.i18n
|
for localeName, locale of say.i18n
|
||||||
|
continue if localeName is '-'
|
||||||
if target of locale
|
if target of locale
|
||||||
result = locale[target]
|
result = locale[target]
|
||||||
else continue
|
else continue
|
||||||
|
|
Loading…
Reference in a new issue