@@ -600,6 +600,7 @@ Provider Install with
600600Crowdin ``composer require symfony/crowdin-translation-provider ``
601601Loco (localise.biz) ``composer require symfony/loco-translation-provider ``
602602Lokalise ``composer require symfony/lokalise-translation-provider ``
603+ Phrase ``composer require symfony/phrase-translation-provider ``
603604==================== ===========================================================
604605
605606Each library includes a :ref: `Symfony Flex recipe <symfony-flex >` that will add
@@ -689,6 +690,14 @@ configure the ``providers`` option:
689690 ],
690691 ]);
691692
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+
692701.. tip ::
693702
694703 If you use Lokalise as a provider and a locale format following the `ISO
@@ -698,6 +707,12 @@ configure the ``providers`` option:
698707 capital letters that specifies the national variety (e.g. "GB" or "US"
699708 according to `ISO 3166-1 alpha-2 `_)).
700709
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+
701716Pushing and Pulling Translations
702717~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
703718
@@ -1479,3 +1494,5 @@ Learn more
14791494.. _`GitHub Actions` : https://docs.github.com/en/free-pro-team@latest/actions
14801495.. _`pseudolocalization` : https://en.wikipedia.org/wiki/Pseudolocalization
14811496.. _`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