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