mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Optimized localizationEntries loop
This commit is contained in:
@@ -580,13 +580,8 @@ export default class PKPass extends Bundle {
|
|||||||
|
|
||||||
const localizationEntries = Object.entries(this[localizationSymbol]);
|
const localizationEntries = Object.entries(this[localizationSymbol]);
|
||||||
|
|
||||||
for (
|
for (let i = localizationEntries.length - 1; i >= 0; i--) {
|
||||||
let i = localizationEntries.length,
|
const [lang, translations] = localizationEntries[i];
|
||||||
entry: typeof localizationEntries[0];
|
|
||||||
(entry = localizationEntries[--i]);
|
|
||||||
|
|
||||||
) {
|
|
||||||
const [lang, translations] = entry;
|
|
||||||
|
|
||||||
const stringsFile = Strings.create(translations);
|
const stringsFile = Strings.create(translations);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user