Now location accepts also no translations passed to the function to include the languge

This commit is contained in:
alexandercerutti
2018-08-26 11:58:08 +02:00
parent d240d1a128
commit e7c5a9a3bc

View File

@@ -160,8 +160,8 @@ class Pass {
*/
localize(lang, translations) {
if (typeof translations === "object") {
this.l10n[lang] = translations;
if (typeof translations === "object" || translations === undefined) {
this.l10n[lang] = translations || {};
}
return this;