Skip to content
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

Merged
merged 5 commits into from
Aug 21, 2024

Conversation

rajat-ws
Copy link
Contributor

@rajat-ws rajat-ws commented Jul 23, 2024

Ticket Link


Related Links


Description

  • Migration of react-intl to lingui
  • Reduced bundle size
  • Updated UI

Steps to Reproduce / Test



Checklist

  • PR description included
  • yarn test passes
  • Tests are [changed or added]
  • Relevant documentation is changed or added (and PR referenced)

GIF's

Before:

Screenshot 2024-07-23 at 1 16 24 PM Screenshot 2024-07-23 at 1 16 35 PM Screenshot 2024-07-23 at 1 22 53 PM

After:

Screenshot 2024-07-23 at 12 53 18 PM Screenshot 2024-07-23 at 12 53 32 PM Screenshot 2024-07-23 at 1 23 04 PM
  • Updated after removing formatjs dependency:
Screenshot 2024-08-19 at 4 18 37 PM

Copy link
Collaborator

@praveenkumar1798 praveenkumar1798 left a 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.

image

@rajat-ws
Copy link
Contributor Author

@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.

image

Removed it.

app/themes/colors.js Show resolved Hide resolved
Comment on lines 25 to 26
i18n.load(locale!, localizedMessages);
i18n.activate(locale!);
Copy link
Collaborator

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be locale.

Copy link
Contributor Author

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.

app/components/Siderbar/index.tsx Show resolved Hide resolved
app/components/Header/index.tsx Show resolved Hide resolved
@praveenkumar1798 praveenkumar1798 merged commit 5371f79 into wednesday-solutions:master Aug 21, 2024
2 checks passed
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.

2 participants