You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Handlebars for templates, and in a few places, I use the syntax:
{{__ stateid}}
The idea being that, whatever the value of stateid is, it looks up the i18n string.
In some instances, stateid is undefined, and when encountered, it throws the error:
TypeError: /path/app/views/template.hbs: Cannot read property 'length' of undefined
at dotNotation (/path/app/node_modules/i18n-2/i18n.js:23:15)
at Object.i18n.translate (/path/app/node_modules/i18n-2/i18n.js:336:5)
.....
Could a check be added to dotNotation(), such that if "is" is undefined, it fails more gracefully?
Thanks.
The text was updated successfully, but these errors were encountered:
I use Handlebars for templates, and in a few places, I use the syntax:
{{__ stateid}}
The idea being that, whatever the value of stateid is, it looks up the i18n string.
In some instances, stateid is undefined, and when encountered, it throws the error:
Could a check be added to dotNotation(), such that if "is" is undefined, it fails more gracefully?
Thanks.
The text was updated successfully, but these errors were encountered: