moonrailgun / i18next-toolkit

Out-of-the-box i18n solution
MIT License
4 stars 1 forks source link

feat: support for node #3

Closed AlexXi19 closed 1 month ago

AlexXi19 commented 1 month ago

Description

Support for node

Implementation

Use https://github.com/i18next/i18next-fs-backend and return a i18next instance with an additional getTranslation function that gets the t.

Testing

Use examples/node to test the implementation

 ➜ pnpm start

> @i18next-toolkit/example-node@0.0.0 start /Users/alexxi/Desktop/CS/i18next-toolkit/examples/node
> ts-node src/index.ts

Bonjour le monde

1

moonrailgun commented 1 month ago

LGTM