You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To push your existing translations to your configured third party provider, you have to use the `translation:push` command:
708
+
709
+
.. code-block:: terminal
710
+
711
+
# push all local translations to the Loco provider for the locales and domains configured in config/packages/translation.yaml file
712
+
# it will update existing translations already on the provider.
713
+
$ php bin/console translation:push loco --force
714
+
715
+
# push new local translations to the Loco provider for the French locale and the validators domain.
716
+
# it will **not** update existing translations already on the provider.
717
+
$ php bin/console translation:push loco --locales fr --domain validators
718
+
719
+
# push new local translations and delete provider's translations that not exists anymore in local files for the French locale and the validators domain.
720
+
# it will **not** update existing translations already on the provider.
721
+
$ php bin/console translation:push loco --delete-missing --locales fr --domain validators
722
+
723
+
# check out the command help to see its options (format, domains, locales, etc.)
724
+
$ php bin/console translation:push --help
725
+
726
+
To pull translations from a provider in your local files, you have to use the `translation:pull` command:
727
+
728
+
.. code-block:: terminal
729
+
730
+
# pull all provider's translations to local files for the locales and domains configured in config/packages/translation.yaml file
731
+
# it will overwrite completely your local files.
732
+
$ php bin/console translation:pull loco --force
733
+
734
+
# pull new translations from the Loco provider to local files for the French locale and the validators domain.
735
+
# it will **not** overwrite your local files, only add new translations.
736
+
$ php bin/console translation:pull loco --locales fr --domain validators
737
+
738
+
# check out the command help to see its options (format, domains, locales, intl-icu, etc.)
0 commit comments