Skip to content

Server Configuration

fallbackLng

  • Type: string

The default fallback language. This is a required parameter.

lngs

  • Type: string[]

Override the list of languages. If this parameter is provided, it will override the language list in i18n-ally.

lowerCaseLng

  • Type: boolean
  • Default: false

Whether to ignore the case of language identifiers. If case is ignored, zh-CN and zh-cn will be treated as the same language identifier.

detection

  • Type: Array

Language detection. Once a language identifier is detected, further detection will stop. Detectors listed earlier have higher priority.

Reference: Language Detection

Released under the MIT License.