Check if there is a translation for the specified key
Closed this issue · 1 comments
david2242 commented
I see that in i18next there is an .exists('tranlation.key') method which returns a boolean if a translation string is available for the specific key. In I18NextPipe.d.ts, the exists function isn't exported, so it is not available in this angular package. Is it possible to export it? Or am I able to check for it any other way?
Romanchuk commented
@david2242 Hello!
exists method is available in this package. It is in I18NextService. I18NextService exports all i18next methods as-is.
I18NextPipe only translates keys (calls .t() method) it is designed for it.