Skip to content

Commit 48cbb81

Browse files
authored
Add missing i18n types in gip context (#25363)
## Bug - [x] Related issues linked using `fixes #number` - [ ] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. ## Documentation / Examples - [] Make sure the linting passes Ref: #21930
1 parent 09a4fad commit 48cbb81

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/next/next-server/lib/utils.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@ export interface NextPageContext {
135135
* `String` of the actual path including query.
136136
*/
137137
asPath?: string
138+
/**
139+
* The currently active locale
140+
*/
141+
locale?: string
142+
/**
143+
* All configured locales
144+
*/
145+
locales?: string[]
146+
/**
147+
* The configured default locale
148+
*/
149+
defaultLocale?: string
138150
/**
139151
* `Component` the tree of the App to use if needing to render separately
140152
*/

0 commit comments

Comments
 (0)