-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Conversation
* POSSIBILITY OF SUCH DAMAGE. | ||
* | ||
* Originally forked from | ||
* https://github.com/yiisoft/yii2/blob/master/framework/i18n/MessageFormatter.php |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @nicolas-grekas. |
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
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