שאלו את שאלתכם וקבלו סיכום של המסמך על ידי הפניה לדף הזה ולספק ה-AI שתבחרו
התוכן של הדף הזה תורגם באמצעות AI.
צפייה בגרסה האחרונה של התוכן המקורי באנגליתאם יש לכם רעיון לשיפור התיעוד הזה, אל תהססו לתרום על ידי הגשת Pull Request ב-GitHub.
קישור GitHub לתיעודהעתקת ה-Markdown של המסמך ללוח
Pull Distant Dictionaries
העתקת הקוד ללוח
If intlayer editor is installed, you can also pull dictionaries from the editor. By this way, you can overwrite the content of your dictionaries for the need of your application.
Aliases:
npx intlayer dictionaries pullnpx intlayer dictionary pullnpx intlayer dic pull
Arguments:
Dictionary options:
-d, --dictionaries: Ids of the dictionaries to pull. If not specified, all dictionaries will be pulled.Example:
npx intlayer dictionary pull -d my-dictionary-id my-other-dictionary-id--dictionary: Ids of the dictionaries to pull (alias for --dictionaries).Example:
npx intlayer dictionary pull --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 theintlayer.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--ci: Run the command in every Intlayer project of the monorepo (or only the current one when run from a project directory). Per-project credentials can be injected viaINTLAYER_PROJECT_CREDENTIALS, a JSON map of project path to{ "clientId", "clientSecret" }.Example:
npx intlayer pull --ci
Environment variables options:
--env: Specify the environment (e.g.,development,production).--env-file: Provide a custom environment file to load variables from.--base-dir: Specify the base directory for the project. To retrieve the intlayer configuration, the command will look for theintlayer.config.{ts,js,json,cjs,mjs}file in the base directory.Example:
npx intlayer dictionary push --env-file .env.production.localExample:
npx intlayer dictionary push --env production
Output options:
--new-dictionaries-path: Path to the directory where the new dictionaries will be saved. If not specified, the news dictionaries will be saved in the./intlayer-dictionariesdirectory of the project. If afilePathfields is specified in your dictionary content, the dictionaries will not consider this argument and will be saved in the specifiedfilePathdirectory.
Log options:
--verbose: Enable verbose logging for debugging. (default to true using CLI)
Example:
העתקת הקוד ללוח
