next-i18next with Prismic Multilang - Typescript #2210
Unanswered
MarvingMoreton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am having some issues installing correctly next-i18next in my next App with Prismic Multilang.
Indeed, one part of the multilang is handle through Prismic (headless CMS, all the marketing website part), but I want to use next-i18next with namespaces to multilang the app part.
Although, I am having a hard time having next-i18next detecting on which locale I am.
I am not supposed to add a locale checker in a useEffect on every page/on every component, right..?
here's my i18n.ts:
I am exporting my _app.tsx with
import { appWithTranslation } from 'next-i18next'
export default appWithTranslation(App)
And here is my next.config.js:
But still, in a component such as emailVerified.tsx, I will always get the English content even when I am on a FR locale/page:
Still a Junior Dev here, thanks for the help guys!
Beta Was this translation helpful? Give feedback.
All reactions