mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 21:25:26 +00:00
Made string file to be added only if stringsFile has a length
This commit is contained in:
@@ -396,10 +396,11 @@ export default class PKPass extends Bundle {
|
|||||||
) {
|
) {
|
||||||
const [lang, translations] = entry;
|
const [lang, translations] = entry;
|
||||||
|
|
||||||
super.addBuffer(
|
const stringsFile = createStringFile(translations);
|
||||||
`${lang}.lproj/pass.strings`,
|
|
||||||
createStringFile(translations),
|
if (stringsFile.length) {
|
||||||
);
|
super.addBuffer(`${lang}.lproj/pass.strings`, stringsFile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user