Made string file to be added only if stringsFile has a length

This commit is contained in:
Alexander Cerutti
2021-09-26 16:07:04 +02:00
parent 039b636262
commit 58bb4bdd9a

View File

@@ -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);
}
} }
/** /**