Bugfix. Fall back to 'en' if non-existing locale was specified.
This commit is contained in:
parent
adfe473b40
commit
1430689c43
@ -83,6 +83,9 @@
|
||||
var __ = $.proxy(function (str) {
|
||||
/* Translation factory
|
||||
*/
|
||||
if (this.i18n === undefined) {
|
||||
this.i18n = locales['en'];
|
||||
}
|
||||
var t = this.i18n.translate(str);
|
||||
if (arguments.length>1) {
|
||||
return t.fetch.apply(t, [].slice.call(arguments,1));
|
||||
|
2
converse.min.js
vendored
2
converse.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user