How to add translations outside of /pages? #1457
-
How can I get translations working in directories other than /pages? For example, I need to translate /components/nav which gets included in /pages/_app |
Beta Was this translation helpful? Give feedback.
Answered by
isaachinman
Oct 11, 2021
Replies: 1 comment
-
You can use the global singleton instance: import { i18n } from 'next-i18next'
i18n.t('your-key') |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
isaachinman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the global singleton instance: