Added localize calling instead of manually assigning on addBuffer

This commit is contained in:
Alexander Cerutti
2021-10-18 00:24:33 +02:00
parent 510fd947a0
commit be8d524ad3

View File

@@ -415,10 +415,7 @@ export default class PKPass extends Bundle {
return;
}
Object.assign(
(this[localizationSymbol][lang] ??= {}),
Object.fromEntries(parsedTranslations),
);
this.localize(lang, Object.fromEntries(parsedTranslations));
return;
}