Another fix for mongoose i18n locale object hack.

This commit is contained in:
Scott Erickson 2014-07-13 10:05:58 -07:00
parent 868a6ed43b
commit 843ed97643

View file

@ -54,6 +54,7 @@ module.exports.i18n = (say, target, language=me.lang(), fallback='en') ->
generalName = matches[0] if matches
for localeName, locale of say.i18n
continue if localeName is '-'
if target of locale
result = locale[target]
else continue