[fix] Strange space character.

This commit is contained in:
opi 2014-07-22 14:44:13 +02:00
parent 96781e90aa
commit 54217acac1

View file

@ -25,8 +25,8 @@
* Translation * Translation
*/ */
y18n.translate = function(key, options) { y18n.translate = function(key, options) {
options = options || {'locale' : y18n.locale}; options = options || {'locale' : y18n.locale};
options.locale = options.locale || y18n.locale; options.locale = options.locale || y18n.locale;
// Get translation // Get translation
var translation = this.lookup(key, options); var translation = this.lookup(key, options);
@ -41,7 +41,7 @@
return (translation) ? translation.printf(options) : key; return (translation) ? translation.printf(options) : key;
} }
y18n.lookup = function(key, options) { y18n.lookup = function(key, options) {
// Default locale // Default locale
if (typeof options.locale === 'undefined') { if (typeof options.locale === 'undefined') {
options.locale = y18n.locale; options.locale = y18n.locale;