Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New fuzzy check (v7.1.0) crashes if message has no comments #78

Closed
rankida opened this issue Nov 8, 2018 · 1 comment
Closed

New fuzzy check (v7.1.0) crashes if message has no comments #78

rankida opened this issue Nov 8, 2018 · 1 comment

Comments

@rankida
Copy link
Contributor

rankida commented Nov 8, 2018

If you have a PO file that contains messages that do not have comments then it crashes with:

TypeError: Cannot read property 'flag' of undefined
    at isFuzzy (node_modules/i18next-conv/lib/gettext2json.js:182:31)
    at Object.keys.forEach.key (node_modules/i18next-conv/lib/gettext2json.js:105:39)
    at Array.forEach (<anonymous>)
    at Object.keys.forEach.m (node_modules/i18next-conv/lib/gettext2json.js:94:26)
    at Array.forEach (<anonymous>)
    at parseJSON (node_modules/i18next-conv/lib/gettext2json.js:92:21)
    at addTextLocale.then.data (node_modules/i18next-conv/lib/gettext2json.js:18:12)
    at tryCatcher (node_modules/bluebird/js/release/util.js:16:23)

The bug was added in #75

PR coming shortly...

@perrin4869
Copy link
Contributor

Published as 7.1.1 and 8.0.1, thank you so much!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants