Skip to content

Make StringEntry.localizations optional and improve decoding error reporting.#64

Open
maciej-bevel-health wants to merge 1 commit into
Asana:mainfrom
maciej-bevel-health:makeLocalizationsOptional
Open

Make StringEntry.localizations optional and improve decoding error reporting.#64
maciej-bevel-health wants to merge 1 commit into
Asana:mainfrom
maciej-bevel-health:makeLocalizationsOptional

Conversation

@maciej-bevel-health
Copy link
Copy Markdown

For better or worse Xcode can generate empty keys in the catalogue which look as follows:

    "Subscriptions" : {

    },

Currently locheck will fail parsing a catalogue that contains such entry and, furthermore, displays an error message that isn't pointing to the issue:
error: Invalid file: Failed to parse string catalog: The data couldn’t be read because it is missing. (invalid_file)

The change is to allow the StringEntry.localizations to be missing, so the catalogue parses.
Furthermore I've changed the decoding error reporting to use the error directly as this displays the specific decoding error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant