-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Translator] Document intl format #10264
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
Comments
Thanks for opening this issue Tobias. Hopefully you'll find sometime to document this new feature yourself ... because I'm afraid I don't understand it well enough to document it. Thanks! |
Yes. That is the plan. But in case I forget or are too slow I thought it would be a good thing to write it down. I'll write on this issue when I begin with this feature. |
…from contracts (Nyholm, nicolas-grekas) This PR was merged into the 4.2-dev branch. Discussion ---------- [Translator] Deprecated transChoice and moved it away from contracts | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | Issue: symfony/symfony-docs#10264 This will address comment made here: #27399 (review) This PR moves the `transChoice()` method away from Contracts and back to the component. I also reverted changes in the `IdentityTranslator`. I will still use the deprecated `MessageSelector` but this is not fine since `transChoice()` is also deprecated. Commits ------- dc5f3bf Make trans + %count% parameter resolve plurals d870a85 [Translator] Deprecated transChoice and moved it away from contracts
A nice intl+icu fiddle we could link in the doc! |
Should also tell about symfony/symfony#28952 |
Fixed by the great #11523 PR. |
We should document how to use intl format.
See related PR: symfony/symfony#27399
Some description of the format here:
https://messageformat.github.io/messageformat/page-guide
The text was updated successfully, but these errors were encountered: