165 questions
0
votes
0
answers
12
views
serverSideTranslations from next-i18next throws "Module not found: Can't resolve 'fs'" when used in a separate wrapper file
I'm using the next-i18next library in a Next.js project and trying to refactor serverSideTranslations into a separate wrapper file for reuse.
Calling serverSideTranslations directly inside ...
0
votes
0
answers
23
views
next-i18next translations break during ECS deployment
I am experiencing an issue with next-i18next translations in my Next.js project during AWS ECS deployments. Here’s the situation:
Issue Steps:
Deploy the application to AWS ECS successfully.
Open the ...
1
vote
0
answers
124
views
How do I enable i18n in nextjs without invoking the middleware?
My Nextjs14 app-router application uses next-i18next package in order to enable internationalization. This involves using next-i18n-router to handle redirections to the corresponding locale routes:
/ ...
0
votes
0
answers
57
views
i18next - handle routes by myself
I would like to manually create the routes in NextJS /en, /es, /pt and send the current language to next-i18next.
Is there any manual way to tell next-i18next (appWithTranslation) which language ...
0
votes
1
answer
98
views
Next JS internalization when generate metadata could not use separate title for different languages
src/app/[lang]/milestones/page.tsx
export const metadata: Metadata = {
title: "發展里程"
}
I would like to set different titles for different languages of the same page but could not find a ...
0
votes
0
answers
47
views
How to Change Language Without Redirecting Pages with Next.js?
I provide multi-language support to the Nextjs project using the next-i18next package. English and German languages.
There is a fixed menu named Home Page, Categories, Contact. The names of these ...
0
votes
0
answers
19
views
How to change language of whole webiste using react i18next?
I want to chgange whole website page language by using react i18next and i18next, how to do it without adding in translation string of resources in ** i18n.js ** component of reactjs.
import i18n ...
0
votes
0
answers
227
views
how to use next-i18next in nextjs V14 in App Router convetion?
I read the document and configured the project according to it, but it didn't work. The relevant code is below:
// next.config.js
const { i18n } = require('./next-i18next.config')
module.exports = {
...
0
votes
0
answers
86
views
How to enable auto redirect when I want to use only domain based routing?
I want to create a nextjs i18 app with subdomain based locale, like-
example.com //It is default locale, on default locale I want to use en
fr.example.com
de.example.com
I don't want to use prefix ...
0
votes
1
answer
94
views
How to implement i18next translation in a React project
When you press the buttons, the language should change:
<a href="/" className={`bn5 ${i18next.language === LOCALES.UK ? 'disabled-link' : ''}`} onClick={handleUkrlanguage}>Ukrainian<...
0
votes
0
answers
25
views
i18next replace jsx components but globally?
ho i can replace jsx tags with i18next globaly ?
i know ho replace tags like {{}}
i18next.use<PostProcessorModule>({
type: 'postProcessor',
name: POST_PROCESSORS.game,
process( value,...
2
votes
1
answer
2k
views
How to Apply RTL Support to Shadcn Components in Next.js?
I'm using Next.js app version 14.
RTL is not applied to Shadcn components.
I'm also using next-intl to support multiple languages
Here's how my layout.tsx file looks like:
layout.tsx
import type { ...
1
vote
1
answer
155
views
Translation of entire URLs using the app router
Next.js 14 using the new app router covers dynamic routes...
en/[slug]
...and routes for multiple languages:
[lang]/contact-us
One thing that is not covered anywhere is a combination of both. I want ...
0
votes
1
answer
45
views
In nextJS How to get parameter in getStaticPaths function
I have /[locale]/suscripcion/[brand]/[model]/[version] page
and when I build the project I am getting
Collecting page data ..Error: A required parameter (brand) was not provided as a string in ...
0
votes
1
answer
89
views
Migrating getStaticProps({locale}) from Pages to App in Next.js
I was trying to migrate from Pages to App, and got stuck on getStaticProps({locale}) in Next 13 App Router page.
getStaticProps function takes in locale prop by default, but where do I get that locale ...