Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
By integrating the Intlayer MCP Server to your favourite AI assistant can retrieve all the doc directly from ChatGPT, DeepSeek, Cursor, VSCode, etc.
See MCP Server docThe content of this page was translated using an AI.
See the last version of the original content in EnglishIf you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy doc Markdown to clipboard
Push Dictionaries
npx intlayer dictionary pushIf the intlayer editor is installed, you can also push dictionaries to the editor. This command will allow you to make the dictionaries available to the editor. In this way, you can share your dictionaries with your team and edit your content without modifying the code of your application.
Aliases:
- npx intlayer dictionaries push
- npx intlayer dictionary push
- npx intlayer dic push
Arguments:
Dictionary options:
-d, --dictionaries: IDs of the dictionaries to push. If not specified, all dictionaries will be pushed.
Example: npx intlayer dictionary push -d my-dictionary-id my-other-dictionary-id
--dictionary: IDs of the dictionaries to push (alias for --dictionaries).
Example: npx intlayer dictionary push --dictionary my-dictionary-id my-other-dictionary-id
Configuration options:
--base-dir: Specify the base directory for the project. To retrieve the Intlayer configuration, the command will look for the intlayer.config.{ts,js,json,cjs,mjs} file in the base directory.
Example: npx intlayer dictionary push --env-file .env.production.local
--no-cache: Disable the cache.
Example: npx intlayer build --no-cache
Environment variables options:
- --env: Specify the environment (e.g., development, production). Useful if you use environment variables in your Intlayer configuration file.
--env-file: Provide a custom environment file to load variables from. Useful if you use environment variables in your Intlayer configuration file.
Example: npx intlayer dictionary push --env-file .env.production.local
Example: npx intlayer dictionary push --env production
Output options:
-r, --delete-locale-dictionary: Skip the question asking whether to delete the locales directories once the dictionaries are pushed, and remove them. By default, if the dictionary is defined locally, it will overwrite the content of remote dictionaries.
Example: npx intlayer dictionary push -r
Example: npx intlayer dictionary push --delete-locale-dictionary
-k, --keep-locale-dictionary: Skip the question asking whether to delete the locales directories once the dictionaries are pushed, and keep them. By default, if the dictionary is defined locally, it will overwrite the content of remote dictionaries.
Example: npx intlayer dictionary push -k
Example: npx intlayer dictionary push --keep-locale-dictionary
Preparation options:
- --build: Build the dictionaries before pushing to ensure the content is up to date. True will force the build, false will skip the build, undefined will allow using the cache of the build.
Log options:
- --verbose: Enable verbose logging for debugging. (defaults to true when using CLI)
Git options:
- --git-diff: Only run on dictionaries that include changes from the base (default origin/main) to the current branch (default: HEAD).
- --git-diff-base: Specify the base reference for git diff (default origin/main).
- --git-diff-current: Specify the current reference for git diff (default: HEAD).
- --uncommitted: Include uncommitted changes.
- --unpushed: Include unpushed changes.
--untracked: Include untracked files.
Example: npx intlayer dictionary push --git-diff --git-diff-base origin/main --git-diff-current HEAD
Example: npx intlayer dictionary push --uncommitted --unpushed --untracked