@@ -600,6 +600,7 @@ Provider Install with
600
600
Crowdin ``composer require symfony/crowdin-translation-provider ``
601
601
Loco (localise.biz) ``composer require symfony/loco-translation-provider ``
602
602
Lokalise ``composer require symfony/lokalise-translation-provider ``
603
+ Phrase ``composer require symfony/phrase-translation-provider ``
603
604
==================== ===========================================================
604
605
605
606
Each library includes a :ref: `Symfony Flex recipe <symfony-flex >` that will add
@@ -689,6 +690,14 @@ configure the ``providers`` option:
689
690
],
690
691
]);
691
692
693
+ .. important ::
694
+
695
+ If you use Phrase as a provider you must configure a user agent in your dsn. See
696
+ `Identification via User-Agent `_ for reasoning and some examples.
697
+
698
+ Also make the locale _names_ in Phrase should be as defined in RFC4646 (e.g. pt-BR rather than pt_BR).
699
+ Not doing so will result in Phrase creating a new locale for the imported keys.
700
+
692
701
.. tip ::
693
702
694
703
If you use Lokalise as a provider and a locale format following the `ISO
@@ -698,6 +707,12 @@ configure the ``providers`` option:
698
707
capital letters that specifies the national variety (e.g. "GB" or "US"
699
708
according to `ISO 3166-1 alpha-2 `_)).
700
709
710
+ .. tip ::
711
+
712
+ The Phrase provider uses Phrase's tag feature to map translations to Symfony's translation
713
+ domains. If you need some assistance with organising your tags in Phrase, you might want
714
+ to consider the `Phrase Tag Bundle `_ which provides some commands helping you with that.
715
+
701
716
Pushing and Pulling Translations
702
717
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
703
718
@@ -1479,3 +1494,5 @@ Learn more
1479
1494
.. _`GitHub Actions` : https://docs.github.com/en/free-pro-team@latest/actions
1480
1495
.. _`pseudolocalization` : https://en.wikipedia.org/wiki/Pseudolocalization
1481
1496
.. _`Symfony Demo` : https://github.com/symfony/demo
1497
+ .. _`Identification via User-Agent` : https://developers.phrase.com/api/#overview--identification-via-user-agent
1498
+ .. _`Phrase Tag Bundle` : https://github.com/wickedOne/phrase-tag-bundle
0 commit comments