mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Improved names and fixed issue with loop
This commit is contained in:
25
src/pass.ts
25
src/pass.ts
@@ -220,26 +220,21 @@ export class Pass {
|
||||
* it otherwise.
|
||||
*/
|
||||
|
||||
if (!this.l10nBundles[languageBundleDirname]) {
|
||||
this.l10nBundles[languageBundleDirname] = {};
|
||||
}
|
||||
const languageBundleUnit = (this.l10nBundles[
|
||||
languageBundleDirname
|
||||
] ??= {});
|
||||
|
||||
this.l10nBundles[languageBundleDirname]["pass.strings"] =
|
||||
Buffer.concat([
|
||||
this.l10nBundles[languageBundleDirname][
|
||||
"pass.strings"
|
||||
] || Buffer.alloc(0),
|
||||
strings,
|
||||
]);
|
||||
languageBundleUnit["pass.strings"] = Buffer.concat([
|
||||
languageBundleUnit["pass.strings"] || Buffer.alloc(0),
|
||||
strings,
|
||||
]);
|
||||
}
|
||||
|
||||
if (
|
||||
!(
|
||||
this.l10nBundles[languageBundleDirname] &&
|
||||
Object.keys(this.l10nBundles[languageBundleDirname]).length
|
||||
)
|
||||
!this.l10nBundles[languageBundleDirname] ||
|
||||
!Object.keys(this.l10nBundles[languageBundleDirname]).length
|
||||
) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user