Skip to content

[Translation] Introduce Translation Providers #15310

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

Conversation

welcoMattic
Copy link
Member

@welcoMattic welcoMattic commented May 5, 2021

Docs for symfony/symfony#38475, symfony/symfony#40926, symfony/symfony#40927, and symfony/symfony#40947

Ready for first review, but I'm not sure that I've written documentation in the right and all required places.

ATM, Translation Providers Bridges packages doesn't exists, so Flex recipes are not created yet.

@welcoMattic welcoMattic changed the title Introduce Translation Providers [Translation] Introduce Translation Providers May 5, 2021
@welcoMattic welcoMattic force-pushed the feature/translation-providers branch 2 times, most recently from 485ffbd to 5d3ef38 Compare May 5, 2021 15:51
fabpot added a commit to symfony/symfony that referenced this pull request May 10, 2021
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Translation] Added PoEditor Provider

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        | symfony/symfony-docs#15310

To follow up on #38475, this PR adds [PoEditor](https://poeditor.com/) Provider.

The todo list to make it ready is:

- [x] Apply recent changes that have been made on `ProviderInterface` and `TranslatorBagInterface` (we removed the `all()` and `getDomains()` method from TranslatorBagInterface)
- [x] Add PoEditorProvider to `src/Symfony/Bundle/FrameworkBundle/Resources/config/translation_providers.php` file
- [x] Add PoEditor case to `Symfony\Component\Translation\Exception\UnsupportedSchemeException`
- [x] Write integration tests by mocking HTTP Responses

The major part of the remaining work concerns tests, I will make it done before the beginning of May.

Commits
-------

240ac22 Added PoEditor Provider
fabpot added a commit to symfony/symfony that referenced this pull request May 10, 2021
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Translation] Added Lokalise Provider

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        | symfony/symfony-docs#15310

To follow up on #38475, this PR adds [Lokalise](https://lokalise.com/) Provider.

The todo list to make it ready is:

- [x] Apply recent changes that have been made on `ProviderInterface` and `TranslatorBagInterface` (we removed the `all()` and `getDomains()` method from TranslatorBagInterface)
- [x] Add LokaliseProvider to `src/Symfony/Bundle/FrameworkBundle/Resources/config/translation_providers.php` file
- [x] Add Lokalise case to `Symfony\Component\Translation\Exception\UnsupportedSchemeException`
- [x] Move `LokaliseProvider` and `LokaliseProviderFactory` from `Symfony\Component\Translation\Bridge\Lokalise\Provider` to `Symfony\Component\Translation\Bridge\Lokalise` namespace
- [x] Write integration tests by mocking HTTP Responses

The major part of the remaining work concerns tests, I will make it done before the beginning of May.

Commits
-------

022d828 Added Lokalise Provider
@javiereguiluz javiereguiluz added this to the 5.3 milestone May 11, 2021
@javiereguiluz javiereguiluz changed the base branch from 5.4 to 5.3 May 19, 2021 14:54
@javiereguiluz javiereguiluz force-pushed the feature/translation-providers branch from 06cfb5c to 943a63f Compare May 19, 2021 14:54
@javiereguiluz javiereguiluz merged commit fb1fa0d into symfony:5.3 May 19, 2021
@javiereguiluz
Copy link
Member

Mathieu, thanks a lot for this fantastic feature and for providing the docs for it. We finally merged this PR and we'll talk about this feature in the next "New in Symfony 5.3" blog post 🎉

@welcoMattic welcoMattic deleted the feature/translation-providers branch May 30, 2021 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants