php bin/console translation:push
Push translations to a given provider.
Usage
translation:push [--force] [--delete-missing] [--domains [DOMAINS]] [--locales [LOCALES]] [--] <provider>
Arguments
provider The provider to push translations to.
Options
--force Override existing translations with local ones (it will delete not synchronized messages).
--delete-missing Delete translations available on provider but not locally.
--domains Specify the domains to push.
--locales Specify the locales to push.
Help
The translation:push command pushes translations to the given provider. Only new
translations are pushed, existing ones are not overwritten.
You can overwrite existing translations by using the --force flag:
php bin/console translation:push --force provider
You can delete provider translations which are not present locally by using the --delete-missing flag:
php bin/console translation:push --delete-missing provider
Full example:
php bin/console translation:push provider --force --delete-missing --domains=messages --domains=validators --locales=en
This command pushes all translations associated with the messages and validators domains for the en locale.
Provider translations for the specified domains and locale are deleted if they're not present locally and overwritten if it's the case.
Provider translations for others domains and locales are ignored.