Skip to content

Commit

Permalink
fix(types): add i18n types to gip context
Browse files Browse the repository at this point in the history
  • Loading branch information
rokinsky committed May 22, 2021
1 parent 09a4fad commit c7d4b5e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/next/next-server/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ export interface NextPageContext {
* `String` of the actual path including query.
*/
asPath?: string
/**
* The currently active locale
*/
locale?: string
/**
* All configured locales
*/
locales?: string[]
/**
* The configured default locale
*/
defaultLocale?: string
/**
* `Component` the tree of the App to use if needing to render separately
*/
Expand Down

0 comments on commit c7d4b5e

Please sign in to comment.