Skip to content

feat: Support BigInt for number interpolation with useTranslations - #1929

Merged
amannn merged 2 commits into
amannn:mainfrom
sgleisner:feat/bigint-number-interpolation
Jun 23, 2025
Merged

feat: Support BigInt for number interpolation with useTranslations#1929
amannn merged 2 commits into
amannn:mainfrom
sgleisner:feat/bigint-number-interpolation

Conversation

@sgleisner

@sgleisner sgleisner commented Jun 20, 2025

Copy link
Copy Markdown
Contributor

Example:

const t = useTranslations();
t('label', {count: 123456789123456789123456n});

Fixes #1928

@vercel

vercel Bot commented Jun 20, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-intl-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 0:40am
next-intl-example-app-router ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 0:40am
next-intl-example-app-router-without-i18n-routing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 0:40am

@vercel

vercel Bot commented Jun 20, 2025

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the next-intl Team on Vercel.

A member of the Team first needs to authorize it.

@amannn amannn changed the title feat: BigInt support for number interpolation feat: Support BigInt for number interpolation with useTranslations Jun 23, 2025

@amannn amannn left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Perfect PR, thanks a bunch! 🙌

@amannn
amannn merged commit a893330 into amannn:main Jun 23, 2025
9 of 10 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.

BigInt support for interpolated numerical values

2 participants