Skip to content

[Translation] added method to expose collected message #8597

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
wants to merge 2 commits into from
Closed

[Translation] added method to expose collected message #8597

wants to merge 2 commits into from

Conversation

Grygir
Copy link
Contributor

@Grygir Grygir commented Jul 29, 2013

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR this component don't have docs

@jakzal
Copy link
Contributor

jakzal commented Dec 22, 2013

A use case for this would be using translations in javascript. There already exist few bundles implementing this even though we're not exposing the messages in the translator (see JsI18nBundle or BazingaExposeTranslationBundle for examples).

/**
* Messages exposing
*
* Collects all messages for corresponded domains and locale,
Copy link
Contributor

Choose a reason for hiding this comment

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

corresponding

@cordoval
Copy link
Contributor

also your assert "this component does not have docs" is not accurate https://github.com/symfony/symfony-docs/tree/master/components/translation as you can see this is perfect to document things

another thing is for in the case of a feature it would be ideal to have a paragraph or two explaining what you did on the code even though if it is evident, it helps guide what you are working on and explain things to others

👶

@jakzal
Copy link
Contributor

jakzal commented Dec 26, 2013

Closing as there's an updated version of this PR: #9859

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