Romanchuk / angular-i18next

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

Question: is it possible to use fallback keys with the I18Next pipe? #88

Closed david-bulte closed 1 year ago

david-bulte commented 1 year ago

Hi, i18next has the concept of fallback keys (https://www.i18next.com/principles/fallback#calling-with-fallback-keys). Is this something that the I18NextPipe supports? If so, how? Thanks!

david-bulte commented 1 year ago

Found the answer, you can do it like so:

['foo', 'bar'] | i18next

First 'foo' will be evaluated, if that one does not exist 'bar'