Romanchuk / angular-i18next

angular v10+ integration with i18next v19.4+
MIT License
131 stars 33 forks source link

fix: Fixes i18next format call with options undefined #86

Closed faculezcano closed 1 year ago

faculezcano commented 2 years ago

When trying to use formatters it fails with Cannot read properties of undefined (reading 'locale') which is because no options is being passed to i18next.format() function.

At this line https://github.com/i18next/i18next/blob/9304a251e54d58cda88fb484299bef67f2025c2e/src/Formatter.js#L95 you can find where options.locale fails if undefined is passed