Skip to content

Commit c7d4b5e

Browse files
committed
fix(types): add i18n types to gip context
1 parent 09a4fad commit c7d4b5e

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)