Lukasz-pluszczewski / mi18n

MINTernationalization - i18n made easy
MIT License
4 stars 0 forks source link

Error with special characters, non ASCII. #9

Closed adam-golab closed 6 years ago

adam-golab commented 7 years ago

When you call startCase method on a translation with diacritics, there is implicit triggered deburr method.

this.props.translator.startCase().t('translationWithDiacritics');

it returns Aosc, but should Ąóść

Lukasz-pluszczewski commented 7 years ago

It is directly connected with some lodash methods behaviour. Issue has been created.

EDIT: https://github.com/lodash/lodash/issues/3056

Lukasz-pluszczewski commented 6 years ago

Original issue has been closed, as this behaviour is intended so I'm closing this issue as well. It will change in the ver5 of lodash. mi18n will be updated to use that version as soon as it's available. However, if you want to reimplement helper methods to avoid this issue feel free to create PR.