Skip to content

Access to the i18n outside of a request #128

@sganz

Description

@sganz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions