python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
React Router V6 nested Routes with i18n
I have a question about React Router V6 nested with i18n.
This is my first multi-language service.
const MainPage:React.FC = () => {
const lang = i18n.language;
return (
<>
&l...
Jerry
Votes: 0
Answers: 3
Type error while passing i18next instance to I18nextProvider
Error:
Type 'Promise' is missing the following properties from type 'i18n': t, init, loadResources, use, and 32 more.ts(2740)
index.d.ts(344, 3): The expected type comes from property 'i18n' which is...
Kaan Hakan Akın
Votes: 0
Answers: 1
useState hook behaves differently than expected
I have a simple language selector (en, cs) in my React app using i18next. The change of the language (applying all the translations and re-rendering the app) takes around 2 seconds.
In the meantime, I...
koubin
Votes: 0
Answers: 2
i18next not detecting language variation, eg: en-us
When I set in my browser a language variation, for example: English (United States) / en-us. The i18next library doesn't detect that variation and just loads the next language in the list, for example...
Juanma Menendez
Votes: 0
Answers: 2