Intlayer CLI
Install Package
Install the necessary packages using npm:
npm install intlayer-cli
yarn install intlayer-cli
pnpm install intlayer-cli
intlayer-cli package
intlayer-cli package intend to transpile your intlayer declarations into dictionaries.
This package will transpile all intlayer files, such as src/**/*.content.{ts|js|mjs|cjs|json}. See how to declare your Intlayer declaration files.
To interpret intlayer dictionaries you can interpreters, such as react-intlayer, or next-intlayer
Configuration File Support
Intlayer accepts multiple configuration file formats:
- intlayer.config.ts
- intlayer.config.js
- intlayer.config.json
- intlayer.config.cjs
- intlayer.config.mjs
- .intlayerrc
To see how to configure available locales, or other parameters, refer to the configuration documentation here.
Run intlayer commands
To build your dictionaries, you can run the commands:
npx intlayer transpile
or in watch mode
npx intlayer watch
Use intlayer commands in your package.json:
"scripts": {
"transpile": "npx intlayer transpile",
"transpile:watch": "npx intlayer watch"
}