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 enable a translation provider, add the correct DSN in your ``.env`` file and
654
-
configure the ``providers``:
661
+
configure the ``providers`` option:
655
662
656
663
.. configuration-block::
657
664
@@ -706,37 +713,41 @@ configure the ``providers``:
706
713
],
707
714
]);
708
715
709
-
Push and pull translations
710
-
~~~~~~~~~~~~~~~~~~~~~~~~~~
716
+
Pushing and Pulling Translations
717
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
711
718
712
-
To push your existing translations to your configured third party provider, you have to use the `translation:push` command:
719
+
After configuring the credentials to access the translation provider, you can
720
+
now use the following commands to push (upload) and pull (download) translations:
713
721
714
722
.. code-block:: terminal
715
723
716
-
# push all local translations to the Loco provider for the locales and domains configured in config/packages/translation.yaml file
724
+
# push all local translations to the Loco provider for the locales and domains
725
+
# configured in config/packages/translation.yaml file.
717
726
# it will update existing translations already on the provider.
718
727
$ php bin/console translation:push loco --force
719
728
720
-
# push new local translations to the Loco provider for the French locale and the validators domain.
729
+
# push new local translations to the Loco provider for the French locale
730
+
# and the validators domain.
721
731
# it will **not** update existing translations already on the provider.
722
732
$ php bin/console translation:push loco --locales fr --domain validators
723
733
724
-
# push new local translations and delete provider's translations that not exists anymore in local files for the French locale and the validators domain.
734
+
# push new local translations and delete provider's translations that not
735
+
# exists anymore in local files for the French locale and the validators domain.
725
736
# it will **not** update existing translations already on the provider.
726
737
$ php bin/console translation:push loco --delete-missing --locales fr --domain validators
727
738
728
739
# check out the command help to see its options (format, domains, locales, etc.)
729
740
$ php bin/console translation:push --help
730
741
731
-
To pull translations from a provider in your local files, you have to use the `translation:pull` command:
732
-
733
742
.. code-block:: terminal
734
743
735
-
# pull all provider's translations to local files for the locales and domains configured in config/packages/translation.yaml file
744
+
# pull all provider's translations to local files for the locales and domains
745
+
# configured in config/packages/translation.yaml file.
736
746
# it will overwrite completely your local files.
737
747
$ php bin/console translation:pull loco --force
738
748
739
-
# pull new translations from the Loco provider to local files for the French locale and the validators domain.
749
+
# pull new translations from the Loco provider to local files for the French
750
+
# locale and the validators domain.
740
751
# it will **not** overwrite your local files, only add new translations.
741
752
$ php bin/console translation:pull loco --locales fr --domain validators
0 commit comments