LocaleConfig #

One language of a multilingual site.

Fields #

labelstring

Name of the language shown in the language switcher, for example English.

langoptionalstring

Language code for the lang attribute of the page, for example en or zh-CN.

diroptionalLocaleDirection

Writing direction. Defaults to ltr.

linkoptionalstring

Path prefix of the locale. Defaults to /<key>/; the root locale uses /.

titleoptionalstring

Site title in this locale.

descriptionoptionalstring

Description of pages in this locale that set none in frontmatter.

headoptionalHeadConfig[]

Tags added to the <head> of pages in this locale.

themeConfigoptionalPartial<ThemeConfig>

Theme settings for this locale.

Full type signature
TypeScript
interface LocaleConfig {
  label: string
  lang?: string
  dir?: LocaleDirection
  link?: string
  title?: string
  description?: string
  head?: HeadConfig[]
  themeConfig?: Partial<ThemeConfig>
}

Edit this page

Comments