Skip to content

i18n and localization #38

@patrickarlt

Description

@patrickarlt

It looks like everyone in the Node community is using https://github.com/mashpie/i18n-node so we can use that for translation. We can register a custom global to wrap the translation function so you can so {{ __("Hello") }} in your templates. Could also register a custom filter so {{ "Hello" | t }} would also work.

Thats the easy part. The hard part is duplicating all the pages so that index.html becomes index.html and es/index.html and everything still works as expected.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions