mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 21:25:26 +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 allFilesKeys = Object.keys(this[filesSymbol]);
|
||||||
const langFolderIdentifier = `${lang}.lproj`;
|
const langFolderIdentifier = `${lang}.lproj`;
|
||||||
|
|
||||||
for (
|
for (let i = allFilesKeys.length - 1; i >= 0; i--) {
|
||||||
let i = allFilesKeys.length, filePath: string;
|
const filePath = allFilesKeys[i];
|
||||||
(filePath = allFilesKeys[--i]);
|
|
||||||
|
|
||||||
) {
|
|
||||||
if (filePath.startsWith(langFolderIdentifier)) {
|
if (filePath.startsWith(langFolderIdentifier)) {
|
||||||
delete this[filesSymbol][filePath];
|
delete this[filesSymbol][filePath];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user