question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support react-i18next

See original GitHub issue

Hi guys! I can`t understand how to add react-i18next with your i18next configuration… It might be a stupid question, sorry)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yassinedoghricommented, Sep 11, 2022

@yassinedoghri thanks for example, but this does not work. I change 92 line of index.ts to i18nextInit += ".use(${key.replace('}', '').replace('{', '')})"; And your example work properly. but i don’t have idea for normalize this fix for pull request upside_down_face

Oh, good one! You could use a regex instead of calling replace twice:

 i18nextInit += ".use(${key.replace(/[{}]/g, '')})";
1reaction
aquaminercommented, Sep 11, 2022

@yassinedoghri thanks for example, but this does not work. I change 92 line of index.ts to
i18nextInit += ".use(${key.replace('}', '').replace('{', '')})"; And your example work properly. but i don’t have idea for normalize this fix for pull request 🙃

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-i18next documentation: Introduction
react -i18next is a powerful internationalization framework for React / React Native which is based on i18next. Check out the history of i18next...
Read more >
React i18next - GitHub
Production ready we know there are more needs for production than just doing i18n on the clientside, so we offer wider support on...
Read more >
How to translate your React app with react-i18next
You learn how to you can translate your React app with react-i18next. The tutorial also explains how to manage the translations json files...
Read more >
How to Internationalize a React App using i18next & Hygraph
Internationalization (or i18n) is the process of ensuring that your website's platforms, processes, and architecture can accommodate and support ...
Read more >
A Guide to React Localization with i18next | Phrase
React -i18next is a powerful set of components, hooks, and plugins that sit on top of i18next. Learn how to use it to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found