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

Drop unsupported locales from moment #42521

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

uladzimirdev
Copy link
Contributor

@uladzimirdev uladzimirdev commented May 10, 2024

Closes #42552

Description

moment includes all locales by default, increasing bundle size, but we don't need some of them

How to verify

verify the list of supported locales and try to change locale in admin settings

Demo

Before

Screenshot 2024-05-13 at 10 12 06

After

Screenshot 2024-05-13 at 10 09 32

Copy link

replay-io bot commented May 10, 2024

Status Complete ↗︎
Commit 3704ca9
Results
⚠️ 7 Flaky
2493 Passed

@metabase-bot metabase-bot bot added the visual Run Percy visual testing label May 11, 2024
Copy link

github-actions bot commented May 11, 2024

Codenotify: Notifying subscribers in CODENOTIFY files for diff eca348e...3704ca9.

Notify File(s)
@alxnddr frontend/src/metabase/visualizations/visualizations/SmartScalar/compute.js

@uladzimirdev uladzimirdev changed the title Shake moment Drop unused locales from moment May 13, 2024
@uladzimirdev uladzimirdev changed the title Drop unused locales from moment Drop unsupported locales from moment May 13, 2024
@uladzimirdev uladzimirdev added the no-backport Do not backport this PR to any branch label May 13, 2024
@uladzimirdev uladzimirdev requested review from alxnddr and removed request for camsaul May 13, 2024 07:25
// https://www.metabase.com/docs/latest/configuring-metabase/localization
new MomentLocalesPlugin({
localesToKeep: [
"sq",
Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch .Team/QueryingComponents visual Run Percy visual testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cut unused moment locales
2 participants