[enh] Return key instead of 'undefined' when no translation exists.

This commit is contained in:
opi 2014-05-12 23:07:53 +02:00
parent 903885bb09
commit 7d23247218

View file

@ -38,7 +38,7 @@
}
// Variables remplacement
return (translation) ? translation.printf(options) : undefined;
return (translation) ? translation.printf(options) : key;
}
y18n.lookup = function(key, options) {