Module: i18n/get-static
Table of contents
Functions
Functions
getI18nPaths
▸ getI18nPaths(): { params
: { locale
: string
= lng } }[]
Returns
{ params
: { locale
: string
= lng } }[]
Defined in
i18n/get-static.ts:6 (opens in a new tab)
getI18nProperties
▸ getI18nProperties(context
, namespaces?
): Promise
<{}>
Parameters
Name | Type |
---|---|
context | GetStaticPropsContext |
namespaces | string [] |
Returns
Promise
<{}>
Defined in
i18n/get-static.ts:21 (opens in a new tab)
getStaticPaths
▸ getStaticPaths(): Object
Returns
Object
Name | Type |
---|---|
fallback | boolean |
paths | { params : { locale : string = lng } }[] |
Defined in
i18n/get-static.ts:14 (opens in a new tab)
makeStaticProperties
▸ makeStaticProperties(namespaces?
): (context
: GetStaticPropsContext
) => Promise
<{ props
: {} }>
Parameters
Name | Type | Default value |
---|---|---|
namespaces | string [] | [] |
Returns
fn
▸ (context
): Promise
<{ props
: {} }>
Parameters
Name | Type |
---|---|
context | GetStaticPropsContext |
Returns
Promise
<{ props
: {} }>