Skip to content

i18n and localization #38

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions