Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access i18n object in React components? #107

Open
scazzy opened this issue Jun 19, 2017 · 1 comment
Open

How to access i18n object in React components? #107

scazzy opened this issue Jun 19, 2017 · 1 comment

Comments

@scazzy
Copy link

scazzy commented Jun 19, 2017

I'd want to use i18n in react components under React router without adding to each component as props. One way is to use React provider context, but it isn't a recommended solution. Using React Router v4

@gjuchault
Copy link
Collaborator

I'm not sure what's the connection between i18n-node-2 and React Router. i18n-node-2 exposes a simple API, you'll have to deal with the React side :). You might also look into react-based i18n libraries

Repository owner deleted a comment from fdorantesm Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants