Questions tagged [i18next]

i18next is a full-featured i18n javascript library for translating your webapplication.

i18next is a full-featured i18n javascript library for translating your webapplication.

1430 questions
9
votes
2 answers

How can I pass parameters with i18next?

I want to translate my colors but idk how I do it. const Item = memo(({ color, index, lastIndex, translateName, style, activeColor, onPress }: IColorItem) => { return ( {translateName} ) // @ts-ignore }, isEq); const Colors…
universe11
  • 703
  • 1
  • 11
  • 35
9
votes
6 answers

Next-i18next Initial locale argument was not passed into serverSideTranslations

It works locally. However, it will make nextServer 500 internal error once I deployed it on firebase. next-i18next version 8.1.3 Config module.exports = { i18n: { defaultLocale: 'en', locales: ['en', 'ko'], }, }; Codes _app.tsx import {…
Jason Mendoza
  • 91
  • 1
  • 1
  • 3
9
votes
3 answers

How do I localize routes with next.js and next-i18next?

I need to change the name of the route when I change the language. For example, I have a route /en/career but when I change to Czech language, I need a route /cs/kariera. Basically I need the URLs to be localized. Right now, when I'm on /en/career…
samuelg0rd0n
  • 1,080
  • 2
  • 15
  • 27
9
votes
1 answer

"i18next backendConnector: loading namespace failed" when using react-i18next useTranslationHooks

I'm trying to implement react-i18next on my create-react-app application with useTranslation() hooks. However, in the console, the debug mode shows i18next::backendConnector: loading namespace billingAddress for language en failed failed parsing…
9
votes
2 answers

How do I disable i18next console warnings?

I am using i18next with react app, however: Logs like this on every re-render are really slowing down my application: i18next::languageUtils: rejecting non-whitelisted language code: en How do I disable them? I have debug set to false.
Ľubomír
  • 1,075
  • 1
  • 12
  • 20
8
votes
4 answers

using the t() from react-i18next outside of a component

I am using i18next and react-i18next in a react native application, more specifically with input validation. I am trying to pass the t() as a parameter in a no component and i am receiving the error "TypeError: n is not a function. (In…
CornFedKorean
  • 125
  • 1
  • 1
  • 8
8
votes
0 answers

How to persist language change react-i18next React-native

I use react-i18next and i18next to localize an app. I want to be able to change the language manually in the settings and persist that change. The problem is i dont know how to use redux in the i18n config file as redux is async, also i've checked…
B. Mohammad
  • 2,152
  • 1
  • 13
  • 28
8
votes
1 answer

Change language of whole react-native app

My app in react-native has 2 languages: english and french. I've done a i18n.js file and 2 "translation.js" files for english and french. It's working great (i've tried it setting french on my phone, english on the emulator). Now, I want to make a…
Kimako
  • 615
  • 2
  • 11
  • 26
8
votes
0 answers

How do I get more debug information out of i18next?

I have upgraded an app from using webpack-i18n for translations to using i18next (13.1.5). For the most part, everything worked, but on one particular page, none of the text from one of my ejs files is loading. The js file for that page makes a few…
James Martineau
  • 951
  • 1
  • 13
  • 29
8
votes
4 answers

Detect browser's language with i18next-browser-languagedetector for reactJs web app

I have a reactJs application and I want to add localization to it. I have never used i18next before but I am trying to get used to it. My problem is, I cannot detect user's browser's in use language. This is my code could you please help me with…
oakar
  • 1,187
  • 2
  • 7
  • 21
8
votes
1 answer

i18next translation being displayed as unicode hex character

I'm using i18next to handle translations in a project I'm working on and I'm finding that when I hand a string to the translation that contains /, it is being converted to the unicode hex code / I am setting title as: const title =…
oldo.nicho
  • 2,149
  • 2
  • 25
  • 39
7
votes
1 answer

How can I localize routes with the nextJs and next-i18next like an URL alias?

I'm using NextJs 10.0.5 with next-i18next 8.1.0 to localize my application. As we all know nextJs 10 has subpath routing for internationalized routing. In addition, I need to change the page names by language. For example, I have a contact-us file…
ofsahinler
  • 71
  • 1
  • 3
7
votes
1 answer

Next.js with i18n error : Warning: Text content did not match. Server: "" Client: "fr"

We get this error on load. Application first loads at URL http://localhost:3000/ then when we switch to ex: french we get http://localhost:3000/fr but when we switch languages again to ex: deutsch we get http://localhost:3000/de/fr and so on. The…
7
votes
4 answers

i18next check for unused translation

I'm wondering if anyone knows of a good way / tool / package to checking for unused translations I've seen it for rails, like i18n-tasks but nothing for react I'm currently using react-i18next, but it could be anything that looks through your…
Kaelyn
  • 171
  • 1
  • 6
7
votes
7 answers

Nextjs stuck loading the home page

I'm working on a website created with Nextjs. But when I run it on my local it doesn't load anything on the console just show [ event ] build page: /_error. I tried to log the _error.js but nothing had been shown. The following are my…
Saeed Amin
  • 145
  • 1
  • 3
  • 8
1 2
3
95 96