Skip to content

Lazy-load intl-messageformat #1083

@EliasVal

Description

@EliasVal

Is your feature request related to a problem? Please describe.

While building my Next.js app, I noticed that intl-messageformat is taking up quite a bit of space.

page.tsx with useTranslations:
image

page.tsx without useTranslations:
image

Bundle analyzer result with useTranslaions:
image

Describe the solution you'd like

Either have the option to somehow opt-out of formatting, or lazy-load it on the client.

Describe alternatives you've considered

Haven't looked into any other solutions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions