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

Support localePrefix setting per domain #1105

Closed
wants to merge 1 commit into from
Closed

Conversation

amannn
Copy link
Owner

@amannn amannn commented Jun 3, 2024

Related to #1055

This pull request introduces the ability to specify a localePrefix setting per domain in the Next.js internationalization middleware configuration.

  • Adds localePrefix property to DomainConfig type: The DomainConfig type in packages/next-intl/src/middleware/NextIntlMiddlewareConfig.tsx now includes a localePrefix property. This allows for domain-specific locale prefix settings, enabling more granular control over locale handling.
  • Maintains backward compatibility: The addition of the localePrefix property is optional and does not affect existing configurations that do not use this property. This ensures that current implementations will continue to work without modification.

For more details, open the Copilot Workspace session.

Copy link

vercel bot commented Jun 3, 2024

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 3, 2024 7:03pm
next-intl-example-app-router ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 7:03pm

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.

1 participant