Skip to content

[Translator] Recommending real message id for shared bundles #12236

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 1 commit into from
Sep 6, 2019

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented Aug 25, 2019

Using the "keyword" method to create translation message in public/shared bundles is painful sometimes, because apps with single-lenguage MUST activate the translator layer to see the final message, so worse performance.

DX-wise, the "keyword" method is "practical" (nowaday smart IDEs can replace texts easier), but when we're creating a bundle we should also think that "translation" is optional for apps.

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this recommendation for the reasons given in the updated docs ... although this only works when the app language is English too (which is probably what the shared bundle is going to use).

@javiereguiluz
Copy link
Member

Thank you Yonel.

javiereguiluz added a commit that referenced this pull request Sep 6, 2019
…dles (yceruto)

This PR was merged into the 3.4 branch.

Discussion
----------

[Translator] Recommending real message id for shared bundles

Using the "keyword" method to create translation message in public/shared bundles is painful sometimes, because apps with single-lenguage MUST activate the `translator` layer to see the final message, so worse performance.

DX-wise, the "keyword" method is "practical" (nowaday smart IDEs can replace texts easier), but when we're creating a bundle we should also think that "translation" is optional for apps.

Commits
-------

0def709 Recommending real message id for shared bundles
@javiereguiluz javiereguiluz merged commit 0def709 into symfony:3.4 Sep 6, 2019
@yceruto yceruto deleted the message_id_recommendation branch September 6, 2019 13:46
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