react-i18next icon indicating copy to clipboard operation
react-i18next copied to clipboard

I18NextProvider.reportNS function does not report default namesapce

Open marcinvalas opened this issue 8 years ago • 4 comments

It looks like namespaces reported by reportNS is undefined when no namespace is specified and fallback rule is executed.

For example, if I set { defaultNS: 'global' } option in i18next and use translate HOC translate()(Home); then component Home will be translated using global namespace. But reportNS returns undefined

@olivierpascal can you look on this?

marcinvalas avatar Sep 03 '18 10:09 marcinvalas

This is definitely a bug. I'll take care of it.

olivierpascal avatar Sep 03 '18 12:09 olivierpascal

@tutok are you using this feature for SSR? Just wondering.

olivierpascal avatar Sep 03 '18 13:09 olivierpascal

@olivierpascal yes, I use it with SSR

marcinvalas avatar Sep 03 '18 13:09 marcinvalas

guess this one could be closed...PR was merged

jamuhl avatar Sep 13 '18 09:09 jamuhl