mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 22:25:24 +00:00
Now location accepts also no translations passed to the function to include the languge
This commit is contained in:
4
index.js
4
index.js
@@ -160,8 +160,8 @@ class Pass {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
localize(lang, translations) {
|
localize(lang, translations) {
|
||||||
if (typeof translations === "object") {
|
if (typeof translations === "object" || translations === undefined) {
|
||||||
this.l10n[lang] = translations;
|
this.l10n[lang] = translations || {};
|
||||||
}
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
Reference in New Issue
Block a user