Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into canary
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Sep 5, 2024
2 parents fa3c401 + 43b268e commit 141ee8a
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 3.19.1 (2024-09-05)

### Bug Fixes

* Add error handling in case an invalid i18n request config file has been specified ([#1327](https://github.com/amannn/next-intl/issues/1327)) ([18b9fd6](https://github.com/amannn/next-intl/commit/18b9fd64af235c144cc0e5f4f166ba4df20fece4)) – by @amannn

## 3.19.0 (2024-08-30)

### Features

* Support `./i18n/request.ts` in addition to `./i18n.ts` ([#1308](https://github.com/amannn/next-intl/issues/1308)) ([258e95e](https://github.com/amannn/next-intl/commit/258e95ebef10033c3d6de524e6cd6c7459a18916)) – by @amannn

## 3.18.1 (2024-08-29)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/docs/routing/navigation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ import {redirect} from '@/i18n/routing';
redirect('/login');
// Dynamic params need to be interpolated into the pathname
router.push('/users/12');
redirect('/users/12');
```

</Tab>
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
"version": "3.18.1",
"version": "3.19.1",
"packages": [
"packages/*"
],
Expand Down
12 changes: 12 additions & 0 deletions packages/next-intl/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 3.19.1 (2024-09-05)

### Bug Fixes

* Add error handling in case an invalid i18n request config file has been specified ([#1327](https://github.com/amannn/next-intl/issues/1327)) ([18b9fd6](https://github.com/amannn/next-intl/commit/18b9fd64af235c144cc0e5f4f166ba4df20fece4)) – by @amannn

## 3.19.0 (2024-08-30)

### Features

* Support `./i18n/request.ts` in addition to `./i18n.ts` ([#1308](https://github.com/amannn/next-intl/issues/1308)) ([258e95e](https://github.com/amannn/next-intl/commit/258e95ebef10033c3d6de524e6cd6c7459a18916)) – by @amannn

## 3.18.1 (2024-08-29)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/next-intl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-intl",
"version": "3.18.1",
"version": "3.19.1",
"sideEffects": false,
"author": "Jan Amann <jan@amann.work>",
"funding": [
Expand Down
16 changes: 16 additions & 0 deletions packages/next-intl/src/server/react-server/getConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ async function receiveRuntimeConfigImpl(
getConfig: typeof createRequestConfig,
localeOverride?: string
) {
if (
process.env.NODE_ENV !== 'production' &&
typeof getConfig !== 'function'
) {
throw new Error(
`Invalid i18n request configuration detected.
Please verify that:
1. In case you've specified a custom location in your Next.js config, make sure that the path is correct.
2. You have a default export in your i18n request configuration file.
See also: https://next-intl-docs.vercel.app/docs/usage/configuration#i18n-request
`
);
}

let hasReadLocale = false;

// In case the consumer doesn't read `params.locale` and instead provides the
Expand Down
12 changes: 12 additions & 0 deletions packages/use-intl/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 3.19.1 (2024-09-05)

### Bug Fixes

* Add error handling in case an invalid i18n request config file has been specified ([#1327](https://github.com/amannn/next-intl/issues/1327)) ([18b9fd6](https://github.com/amannn/next-intl/commit/18b9fd64af235c144cc0e5f4f166ba4df20fece4)) – by @amannn

## 3.19.0 (2024-08-30)

### Features

* Support `./i18n/request.ts` in addition to `./i18n.ts` ([#1308](https://github.com/amannn/next-intl/issues/1308)) ([258e95e](https://github.com/amannn/next-intl/commit/258e95ebef10033c3d6de524e6cd6c7459a18916)) – by @amannn

## 3.18.1 (2024-08-29)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/use-intl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "use-intl",
"version": "3.18.1",
"version": "3.19.1",
"sideEffects": false,
"author": "Jan Amann <jan@amann.work>",
"description": "Internationalization (i18n) for React",
Expand Down

0 comments on commit 141ee8a

Please sign in to comment.