Closed amannn closed 2 weeks ago
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 | Oct 30, 2024 11:16am |
next-intl-example-app-router | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Oct 30, 2024 11:16am |
next-intl-example-app-router-without-i18n-routing | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Oct 30, 2024 11:16am |
With this change,
next-intl
is now compliant with the latest GDPR requirements out of the box without any work necessary on the app developer side (see docs).If you want to increase the cookie expiration, e.g. because you're informing users about the usage of cookies or if GDPR doesn't apply to you, you can use the
maxAge
attribute to do so:Breaking changes
maxAge
attribute of the locale cookie is decreased from 1 year to 5 hours in order to be GDPR-compliant.accept-language: 'en'
will cause a cookie to be set when/de
is requested to remember the preference forde
. In case you've previously relied onNEXT_LOCALE
to always be available, please consider reading the locale viagetLocale
.localeDetection: false
previously ambiguously also disabled the cookie from being set. This is no longer the case. For consistency, you can now use the explicitlocaleCookie: false
option instead.