It's an API that allows you to manage all your web platform translations. Given a translation key and a language code, you can have the translation text from the provided language. It allows you to organize your translations by sections, and it supports white label.
Nest framework TypeScript
Note: Currently at an early stage of development, use at your own risk. We do not guarantee sudden changes in the implementation.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
For development purpose you may need to create some fake translations, you can use the following command to generate fake translation keys and translations
$ npx nestjs-command translation:populate
Note: You need to register CLI_PATH=./dist/src/cli.js as a env var
NODE_ENV: # dev | prod | staging
SECRET: # your application secret
PORT: # the port your application will listen
HASH_SALT: # your hash salt, it can be a string or number
HASH_EXPIRES_IN: # jwt expiration time: 7d(seven days) | 10h(ten days) | 60s(sixty seconds) | 11(eleven milliseconds)
SYSTEM_PASSWORD: # your system password, this value is used during the migration to create the system user. you can remove it after that
CLI_PATH: ./dist/src/cli.js # it MUST be this value
iTranslateNow is MIT licensed.
- Integration tests
- Add database cache
- Add a config layer
- Language teams CRUD