Questions tagged [next-i18next]
165 questions
0
votes
0 answers
Why my next-i18next isnot working and even though translated content is written in json file instantly
the app doesn't get the latest content from json file.
I have translations in database. For a page /product/3, I do serverside props like below:
export async function getServerSideProps({ params, locale }) {
const res = await…

NroGamerz
- 189
- 2
- 8
0
votes
1 answer
can i make some files always available with next-i18next
I have a Next.js application with next-i18next, I have some files like common.json or ui.json that I want them to be always available in any component or route even if it does not exist, without calling them with SSR or SSG.
For example, the code…

Rawand
- 377
- 3
- 11
0
votes
1 answer
Why does next-i18next need next-i18next.config.js?
I wonder why does next-i18next need next-i18next.config.js.
My guess is that i18n-related data declared in next.config.js can be pulled out, but I wonder why it needs to exist as a separate file. In my case, Front is configured as a monorepo, so in…

benovice
- 1
0
votes
0 answers
Upload translations from CDN
Is it possible to get translations from cdn (s3 bucket)?
Config:
{
i18n: {
fallbackLng: 'en',
defaultLocale: 'empty',
locales: [
'empty',
'en',
'de',
'ee',
'es',
'fi',
'fr',
'gb',
…

Daxik
- 133
- 10
0
votes
1 answer
nextjs dynamic routes doesn't work with next-i18next
I just added next-i18next in my nextjs project following the official guide and everything seemed to be in order, but when I change the language from default (Italian) to English and I go to the detail of an entity then I get 404. This happens only…

Loudrous
- 1,039
- 10
- 29
0
votes
1 answer
next-i18next, next export & 404 on non-generated pages (with fallback true/blocking)
Having followed the documentation on i18next/next-i18next to configure i18n and then the instructions on this locize blog post on how to export static sites with next export, I am able to export localised versions of each page.
The problem is that…

Thomas
- 97
- 6
0
votes
0 answers
NextJS i18next not working with defaultLocale
I have deployed the website to DigitalOcean, having 3 i18n languages and the default locale definition. Unfortunately, the website's default (index) path https://somewebsite.com does not work and requires using at least one locale from which it…

Aleksandrs
- 81
- 6
0
votes
1 answer
react-i18next backendConnector: loading namespace failed failed parsing /locales/de-DE/
I'm using react i18next like described in the step by step guide https://react.i18next.com/latest/using-with-hooks
Everything works fine I think, but if I browse my site in Google Chrome I get the Warning
i18next::backendConnector: loading…

Dirk
- 11
- 3
0
votes
0 answers
(SOLVED)(Next.js 13 + Next-i18next): Translations does not work on specific page when deployed to AWS Amplify
When i run locally (even with yarn start in prod mode), my translations work correctly. However, after i deploy my project to AWS Amplify, this specific /dashboard page is not working the translations (no error messages at all in console.log,…

ezragul
- 1
- 2
0
votes
1 answer
versel does not return i18nexus key values from the getServerSideProps nextjs method
I ran into this problem: I added a translation to my site using next-i18next, so that the development was faster, I used i18nexus. When I develop applications I don't have any problems. But when uploading it to Versel, the values from i18nexus…

Стас Лабанов
- 5
- 3
0
votes
0 answers
Next.JS page takes forever to load after moving internationalization from a Page to a Component
I am using next-i18next to translate my pages in my Next.JS app. I followed the basic tutorial and this works great for translating a page.
In the page login.tsx this code handles the translation:
const { i18n } = useTranslation();
const {…

Fabian Svensson
- 89
- 5
0
votes
0 answers
Next - Hydrating translations with next-i18next on client site
I have a problem with hydratation of translations via API.
I am using only two namespaces. common.json and paths.json
and if i change some of the translation in database for namespace common, it change whole namespace and it cause to revalid all of…

Snicko
- 1
- 2
0
votes
3 answers
next-i18next How Can I Use in Components?
I have completed all the steps on the documentation.
Why is the code below not working? For NextJs, SSR cannot be performed on any page except for each pages folder. For example, how do I use the translate for the NavBar? I Couldn't find any…

next951595
- 23
- 2
0
votes
0 answers
i18n reloadResources in Incremental Static Regeneration (ISR)
As I am using next-i18next, I figured that I am calling language API (json format) when I build the next.js project by using i18next-http-backend in next-i18next.config.js
Downside of it, is that I need to REBUILD the project when language data is…

D. K.
- 41
- 4
0
votes
0 answers
addResourceBundle after init and cacheing
I am fetching namespaces for each component from a database that store JSON and adding them via addResourceBundle after init:
// Component
i18next.addResourceBundle('ar', 'topicNS', {
topics,
});
I would like to add these to the…

Cemal Okten
- 819
- 1
- 6
- 13