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

Redux-i18n accessing t() function outside React components, e.g. in action creators #85

Open
Mani79393 opened this issue Jun 8, 2018 · 1 comment

Comments

@Mani79393
Copy link

I'm using Redux-i18n inside my React components. Works as designed. Now, I have several business logic as separate functions within my action creator files. This includes additional error handling and validity checks. Some of them are display other are sent by eMail. At this point I know the user / recipient and want to show them the message / mail in their preferred language. I use templates in the backend of course, but I have certain attributes from the application I want to add and translate.

For this reason, I'd like to translate the messages in the action creators. Is there a way to access the translate literals handy like in the components with the t() function?

@pathfinder2104
Copy link

Any updates on this? I am facing similar issue, I have filed an issue here, this is the link.

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