jquery.i18n
jquery.i18n copied to clipboard
fix: TypeError for numeric values
@gwhenne, please review this pull request. Should resolve #176 .
Works correctly in my test case - thank you!
According to https://api.jquery.com/data/#data-html5 you can use $this.attr( 'data-i18n' )
to retrieve the value directly as a string. However, its behavior may differ in a few cases (e.g. message keys resembling arrays, programmatic use of .data()
).
@ricordisamoa Should I make the changes or is my previous commit fine?
@Deepikap1 dd1beba looks unrelated commit here.