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

Enhance error "Could not translate to "de": TypeError: Cannot read properties of null (reading 'map')" #192

Open
mcm1957 opened this issue Nov 15, 2022 · 0 comments

Comments

@mcm1957
Copy link

mcm1957 commented Nov 15, 2022

npm run translate all issues the following errors is any key has an empty value:

Using Legacy Google Translate
Could not translate to "de": TypeError: Cannot read properties of null (reading 'map')

Could not translate to "de": TypeError: Cannot read properties of null (reading 'map')

Could not translate to "de": TypeError: Cannot read properties of null (reading 'map')

incorrect source example:

    "lblOptNoRawStates": "",
    "lblOptNoValStates": "",

It would be good to add the json key (i.e. lblOpNoRawStates) to the error message. This woul help locating the empty string.

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

1 participant