Skip to content

how can i test component with next-translate? #413

Answered by aralroca
Cleysonlb asked this question in General
Discussion options

You must be logged in to vote

You can disable the warning adding a custom logger on I18nProvider. You can pass the i18n.json config to I18nProvider as a prop, example:

https://github.com/vinissimus/next-translate/blob/1.0.0/__tests__/Trans.test.js#L8

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Cleysonlb
Comment options

Answer selected by Cleysonlb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants