mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Optimized localize null-translations loop
This commit is contained in:
@@ -743,11 +743,9 @@ export default class PKPass extends Bundle {
|
||||
const allFilesKeys = Object.keys(this[filesSymbol]);
|
||||
const langFolderIdentifier = `${lang}.lproj`;
|
||||
|
||||
for (
|
||||
let i = allFilesKeys.length, filePath: string;
|
||||
(filePath = allFilesKeys[--i]);
|
||||
for (let i = allFilesKeys.length - 1; i >= 0; i--) {
|
||||
const filePath = allFilesKeys[i];
|
||||
|
||||
) {
|
||||
if (filePath.startsWith(langFolderIdentifier)) {
|
||||
delete this[filesSymbol][filePath];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user