Captain is currently in ALPHA. We are happy to get your feedback
Core API
I18n Get Static

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

NameType
contextGetStaticPropsContext
namespacesstring[]

Returns

Promise<{}>

Defined in

i18n/get-static.ts:21 (opens in a new tab)


getStaticPaths

getStaticPaths(): Object

Returns

Object

NameType
fallbackboolean
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

NameTypeDefault value
namespacesstring[][]

Returns

fn

▸ (context): Promise<{ props: {} }>

Parameters
NameType
contextGetStaticPropsContext
Returns

Promise<{ props: {} }>

Defined in

i18n/get-static.ts:28 (opens in a new tab)