Skip to content

[Translation] add bundles trans paths into commands (extract/pull/push) #52454

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

Closed

Conversation

Jibbarth
Copy link
Contributor

@Jibbarth Jibbarth commented Nov 4, 2023

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues N/A
License MIT

Hello !

While playing with translation:extract command to trying to gather all sylius translation in one file in order to send them to a translation provider, I found that although translation file are correctly loaded from a bundle while browsing the application, it was mandatory to launch the translation:extract for EACH bundle, and in a Sylius App, there is a lot 😅

This fix pass all $transPaths discovered during compilation into that command (and also push/pull commands).

In my mind, it's a bugfix, that's why I targetted 5.4, but could be considered as new feature, I'm not sure.

@Jibbarth Jibbarth force-pushed the fix/extract-translations-from-bundles branch from 4d47db0 to 8f49c64 Compare November 4, 2023 19:51
…rameworkExtensionTestCase.php

Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
@welcoMattic
Copy link
Member

Thanks @Jibbarth for your contribution. I think we should consider this as a feature, and it should be enabled under a configuration option. I understand your use case, but I'm not sure everyone needs to extract all messages from all bundles in their app. Could you add an option in translation configuration?

@Jibbarth
Copy link
Contributor Author

Jibbarth commented Nov 5, 2023

@welcoMattic thanks for the review 🤗 okay I'll give it a try.

Any idea of configuration name that could be added ?

@Jibbarth
Copy link
Contributor Author

Jibbarth commented Nov 5, 2023

Implemented in #52456 as a feature

@Jibbarth Jibbarth closed this Nov 5, 2023
@Jibbarth Jibbarth deleted the fix/extract-translations-from-bundles branch August 23, 2024 14:50
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.

4 participants