php bin/console translation:pull

Pull translations from a given provider.

Usage

translation:pull [--force] [--intl-icu] [--domains [DOMAINS]] [--locales [LOCALES]] [--format [FORMAT]] [--as-tree [AS-TREE]] [--] <provider>

Arguments

provider   The provider to pull translations from. 

Options

      --force      Override existing translations with provider ones (it will delete not synchronized messages). 
      --intl-icu   Associated to --force option, it will write messages in "%domain%+intl-icu.%locale%.xlf" files. 
      --domains    Specify the domains to pull. 
      --locales    Specify the locales to pull. 
      --format     Override the default output format. 
      --as-tree    Write messages as a tree-like structure. Needs --format=yaml. The given value defines the level where to switch to inline YAML 

Help

The translation:pull command pulls translations from the given provider. Only
new translations are pulled, existing ones are not overwritten.

You can overwrite existing translations (and remove the missing ones on local side) by using the --force flag:

  php bin/console translation:pull --force provider

Full example:

  php bin/console translation:pull provider --force --domains=messages --domains=validators --locales=en

This command pulls all translations associated with the messages and validators domains for the en locale.
Local translations for the specified domains and locale are deleted if they're not present on the provider and overwritten if it's the case.
Local translations for others domains and locales are ignored.