This commit is contained in:
opi 2014-05-13 00:32:15 +02:00
parent 7d23247218
commit c8af8347d7

View file

@ -32,7 +32,7 @@
var translation = this.lookup(key, options);
// Translation fallback
if ((typeof translation === 'undefined' || translation === undefined) && options.locale !== y18n.defaultLocale) {
if ((typeof translation === 'undefined' || translation === key) && options.locale !== y18n.defaultLocale) {
options.locale = y18n.defaultLocale;
return this.translate(key, options);
}