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

Access to the i18n outside of a request #128

Open
sganz opened this issue Nov 1, 2019 · 0 comments
Open

Access to the i18n outside of a request #128

sganz opened this issue Nov 1, 2019 · 0 comments

Comments

@sganz
Copy link

sganz commented Nov 1, 2019

Quick question on how the best way to use i18n.__() functionality outside of a request. I have got things working inside of express by following your examples, and all good.

So the question is if I need to use the i18n.__() functionality outside of an express request (where I have no 'req' object) what is the best practice? Just create another i18n instance, or get the existing one from somewhere (app? express?) .

Thanks
Sandy

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

1 participant