Skip to content

Commit ea9b2a0

Browse files
wickedOnejaviereguiluz
authored andcommitted
[Translation] phrase translation provider
1 parent 6c3aae9 commit ea9b2a0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

translation.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ Provider Install with
600600
Crowdin ``composer require symfony/crowdin-translation-provider``
601601
Loco (localise.biz) ``composer require symfony/loco-translation-provider``
602602
Lokalise ``composer require symfony/lokalise-translation-provider``
603+
Phrase ``composer require symfony/phrase-translation-provider``
603604
==================== ===========================================================
604605

605606
Each 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+
701716
Pushing 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

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy