Skip to content

[Translation] Add link translation provider #19962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 deletions translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -601,13 +601,13 @@ Installing and Configuring a Third Party Provider
Before pushing/pulling translations to a third-party provider, you must install
the package that provides integration with that provider:

==================== ===========================================================
Provider Install with
==================== ===========================================================
Crowdin ``composer require symfony/crowdin-translation-provider``
Loco (localise.biz) ``composer require symfony/loco-translation-provider``
Lokalise ``composer require symfony/lokalise-translation-provider``
==================== ===========================================================
====================== ===========================================================
Provider Install with
====================== ===========================================================
`Crowdin`_ ``composer require symfony/crowdin-translation-provider``
`Loco (localise.biz)`_ ``composer require symfony/loco-translation-provider``
`Lokalise`_ ``composer require symfony/lokalise-translation-provider``
====================== ===========================================================

Each library includes a :ref:`Symfony Flex recipe <symfony-flex>` that will add
a configuration example to your ``.env`` file. For example, suppose you want to
Expand All @@ -632,13 +632,13 @@ pull translations via Loco. The *only* part you need to change is the

This table shows the full list of available DSN formats for each provider:

===================== ==============================================================
Provider DSN
===================== ==============================================================
Crowdin ``crowdin://PROJECT_ID:API_TOKEN@ORGANIZATION_DOMAIN.default``
Loco (localise.biz) ``loco://API_KEY@default``
Lokalise ``lokalise://PROJECT_ID:API_KEY@default``
===================== ==============================================================
====================== ==============================================================
Provider DSN
====================== ==============================================================
`Crowdin`_ ``crowdin://PROJECT_ID:API_TOKEN@ORGANIZATION_DOMAIN.default``
`Loco (localise.biz)`_ ``loco://API_KEY@default``
`Lokalise`_ ``lokalise://PROJECT_ID:API_KEY@default``
====================== ==============================================================

To enable a translation provider, customize the DSN in your ``.env`` file and
configure the ``providers`` option:
Expand Down Expand Up @@ -1476,3 +1476,6 @@ Learn more
.. _`GitHub Actions`: https://docs.github.com/en/free-pro-team@latest/actions
.. _`pseudolocalization`: https://en.wikipedia.org/wiki/Pseudolocalization
.. _`Symfony Demo`: https://github.com/symfony/demo
.. _`Crowdin`: https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Translation/Bridge/Crowdin/README.md
.. _`Loco (localise.biz)`: https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Translation/Bridge/Loco/README.md
.. _`Lokalise`: https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Translation/Bridge/Lokalise/README.md
Loading