next-intl 4.3.11 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,7 +22,7 @@ Internationalization (i18n) is an essential part of the user experience, therefo
22
22
  - ✅ **Type-safe**: Speed up development with autocompletion for message keys and catch typos early with compile-time checks.
23
23
  - 💡 **Hooks-based API**: Learn a single API that can be used across your code base to turn translations into plain strings or rich text.
24
24
  - 🚀 **Next.js-native and performance-obsessed**: App Router, Server Components, static rendering—pick the right tool for the right job, next-intl works everywhere.
25
- - ⚔️ **Internationalized routing**: Provide unique pathnames per language and optionally localize pathnames for search engine optimization.
25
+ - 🌍 **Internationalized routing**: Provide unique pathnames per language and optionally localize pathnames for search engine optimization.
26
26
 
27
27
  ## What does it look like?
28
28
 
@@ -176,7 +176,9 @@ function getNextConfig(pluginConfig, nextConfig) {
176
176
  // paths (see error handling above)
177
177
  'next-intl/config': resolveI18nPath(pluginConfig.requestConfig)
178
178
  };
179
- if (hasStableTurboConfig && !nextConfig?.experimental?.turbo) {
179
+ if (hasStableTurboConfig &&
180
+ // @ts-expect-error -- For Next.js <16
181
+ !nextConfig?.experimental?.turbo) {
180
182
  nextIntlConfig.turbopack = {
181
183
  ...nextConfig?.turbopack,
182
184
  resolveAlias: {
@@ -187,9 +189,12 @@ function getNextConfig(pluginConfig, nextConfig) {
187
189
  } else {
188
190
  nextIntlConfig.experimental = {
189
191
  ...nextConfig?.experimental,
192
+ // @ts-expect-error -- For Next.js <16
190
193
  turbo: {
194
+ // @ts-expect-error -- For Next.js <16
191
195
  ...nextConfig?.experimental?.turbo,
192
196
  resolveAlias: {
197
+ // @ts-expect-error -- For Next.js <16
193
198
  ...nextConfig?.experimental?.turbo?.resolveAlias,
194
199
  ...resolveAlias
195
200
  }
@@ -50,7 +50,9 @@ function getNextConfig(pluginConfig, nextConfig) {
50
50
  // paths (see error handling above)
51
51
  'next-intl/config': resolveI18nPath(pluginConfig.requestConfig)
52
52
  };
53
- if (hasStableTurboConfig && !nextConfig?.experimental?.turbo) {
53
+ if (hasStableTurboConfig &&
54
+ // @ts-expect-error -- For Next.js <16
55
+ !nextConfig?.experimental?.turbo) {
54
56
  nextIntlConfig.turbopack = {
55
57
  ...nextConfig?.turbopack,
56
58
  resolveAlias: {
@@ -61,9 +63,12 @@ function getNextConfig(pluginConfig, nextConfig) {
61
63
  } else {
62
64
  nextIntlConfig.experimental = {
63
65
  ...nextConfig?.experimental,
66
+ // @ts-expect-error -- For Next.js <16
64
67
  turbo: {
68
+ // @ts-expect-error -- For Next.js <16
65
69
  ...nextConfig?.experimental?.turbo,
66
70
  resolveAlias: {
71
+ // @ts-expect-error -- For Next.js <16
67
72
  ...nextConfig?.experimental?.turbo?.resolveAlias,
68
73
  ...resolveAlias
69
74
  }
@@ -1,4 +1,4 @@
1
- import type { Locale } from 'use-intl';
1
+ import type { Locale, Timezone } from 'use-intl';
2
2
  export default function getTimeZone(opts?: {
3
3
  locale?: Locale;
4
- }): Promise<Locale>;
4
+ }): Promise<Timezone>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-intl",
3
- "version": "4.3.11",
3
+ "version": "4.4.0",
4
4
  "sideEffects": false,
5
5
  "author": "Jan Amann <jan@amann.work>",
6
6
  "funding": [
@@ -112,10 +112,10 @@
112
112
  "dependencies": {
113
113
  "@formatjs/intl-localematcher": "^0.5.4",
114
114
  "negotiator": "^1.0.0",
115
- "use-intl": "^4.3.11"
115
+ "use-intl": "^4.4.0"
116
116
  },
117
117
  "peerDependencies": {
118
- "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
118
+ "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
119
119
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0",
120
120
  "typescript": "^5.0.0"
121
121
  },
@@ -124,5 +124,5 @@
124
124
  "optional": true
125
125
  }
126
126
  },
127
- "gitHead": "14b2c6a067b19ed33e9604147b449d4ddec3514f"
127
+ "gitHead": "bc09e3c77a2776af7124259a9166e80d44f9b651"
128
128
  }