10000 Add polyfill for Intl\MessageFormatter by nicolas-grekas · Pull Request #148 · symfony/polyfill · GitHub
[go: up one dir, main page]

Skip to content

Add polyfill for Intl\MessageFormatter #148

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 22, 2018
Merged

Add polyfill for Intl\MessageFormatter #148

merged 1 commit into from
Sep 22, 2018

Conversation

nicolas-grekas
Copy link
Member

This is a fork of Yii's fallback MessageFormatter implementation, ported as a polyfill of intl's MessageFormatter. I also reformatted the code to make it more in line with our practices and added some notes if we want to push the polyfill forward. The test suite compares both native and PHP variants, with similar results.
Kudos to them!

ping @cebe and @samdark FYI

* POSSIBILITY OF SUCH DAMAGE.
*
* Originally forked from
* https://github.com/yiisoft/yii2/blob/master/framework/i18n/MessageFormatter.php
Copy link

Choose a reason for hiding this comment

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

you should probably make this a permalink pointing to a tag instead of master to make sure the link does not get broken later.

https://github.com/yiisoft/yii2/blob/2.0.15/framework/i18n/MessageFormatter.php

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, done, thanks!

* POSSIBILITY OF SUCH DAMAGE.
*
* Originally forked from
* https://github.com/yiisoft/yii2/blob/master/tests/framework/i18n/FallbackMessageFormatterTest.php
Copy link

Choose a reason for hiding this comment

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

@fabpot
Copy link
Member
fabpot commented Sep 22, 2018

Thank you @nicolas-grekas.

@fabpot fabpot merged commit ed8c89d into symfony:master Sep 22, 2018
fabpot added a commit that referenced this pull request Sep 22, 2018
This PR was merged into the 1.9-dev branch.

Discussion
----------

Add polyfill for Intl\MessageFormatter

This is a fork of Yii's [fallback MessageFormatter](https://github.com/yiisoft/yii2/blob/master/framework/i18n/MessageFormatter.php) implementation, ported as a polyfill of intl's MessageFormatter. I also reformatted the code to make it more in line with our practices and added some notes if we want to push the polyfill forward. The test suite compares both native and PHP variants, with similar results.
Kudos to them!

ping @cebe and @samdark FYI

Commits
-------

ed8c89d Add polyfill for Intl\MessageFormatter
@nicolas-grekas nicolas-grekas deleted the messageformatter branch September 22, 2018 07:47
@symfony symfony deleted a comment from fabpot Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0