Questions tagged [next-translate]
6 questions
1
vote
1 answer
Hydration error in Next.js when I refresh after changing language(except english) using next-translate/useTranslation
I'm having trouble with the useTranslation hook from the next-translate package in my Next.js application. While all my languages are being recognized, I encounter a hydration error whenever I change the language and refresh the page.
Here's the…

Sushanth
- 21
- 2
1
vote
0 answers
Module not found: Can't resolve 'next-translate/appWithI18n'
A problem occurs when applying next-translate in yarn workspace monorepo, nextjs 13 environment.
environment:
yarn berry
yarn workspace monorepo
next-translate
nextjs 13
folder structure
enter image description here
app package.json
"name":…

박정근
- 11
- 2
0
votes
1 answer
Implementing next-translate or next-translate-plugin into next.js app 13.4.1 with app directory
I'm building an static website that it's my portfolio but I can't get next-translate to work. Honestly right now I'm entirely lost, I followed lots of tutorials and step by step but nothing seems to work. I just want to store the translations in…

Inti
- 51
- 4
0
votes
1 answer
React on('languageChanged', isn't working for detecting language change
I'm quite new to react and I'm searching the best way to detect when user change language. I'm using next translate to translate resources but for some ressource I'm getting from API, I need to change them manually. Here is the way I'm using default…

clement
- 4,204
- 10
- 65
- 133
0
votes
0 answers
nextJs13 using next-translate with app_ directory: images in the /public folder not displayed
I want to use nextjs13.2.4 with the new app_ directory and the plugin next-translate.
I use a middleware.ts to rewrite the paths.
I wish to use the language as a subpath /en/page-name,
export function middleware(request: NextRequest) {
const…

martin
- 11
- 1
0
votes
1 answer
In Next.js, when using next-translate i18n plugin with dynamic routes, it does not work with non-default locale
In Next.js, when using next-translate i18n plugin with dynamic routes, it does not work with non-default locale.
I have 2 locales. Arabic "ar" and English "en". The default locale is "ar".
When I access this URL for example: domain.com/post/1 it…

Amr
- 4,809
- 6
- 46
- 60