-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: migrate react-intl to lingui #50
feat: migrate react-intl to lingui #50
Conversation
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.
@rajat-ws There is a format js asset that is consuming about 1.3 Mb which is ideally not required. I have fixed it in react template. please do refer.
Removed it. |
i18n.load(locale!, localizedMessages); | ||
i18n.activate(locale!); |
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.
Why is it locale!. Is this expectedb ?
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.
Should be locale
.
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.
Pushed the fix for it.
Ticket Link
Related Links
Description
react-intl
tolingui
Steps to Reproduce / Test
Checklist
yarn test
passesGIF's
Before:
After:
formatjs
dependency: