mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +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;
|
||||
|
||||
super.addBuffer(
|
||||
`${lang}.lproj/pass.strings`,
|
||||
createStringFile(translations),
|
||||
);
|
||||
const stringsFile = createStringFile(translations);
|
||||
|
||||
if (stringsFile.length) {
|
||||
super.addBuffer(`${lang}.lproj/pass.strings`, stringsFile);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user