type

Locale

One content locale and its ordered fallback chain.

Properties

PropertyTypeDescription
Codeschema.LocaleCodeStable locale code used by APIs and storage.
LabelstringAuthor-facing locale name.
RTLboolUses right-to-left admin presentation.
FallbackLocales[]schema.LocaleCodeConfigured locale codes checked in order when this locale has no value.

How it works

Code is the stable wire and storage identity; changing it is a data migration. Label and RTL affect authoring presentation. Fallback chains must be acyclic and may name only configured locales.

Full signature

type Locale struct { Code schema.LocaleCode Label string RTL bool FallbackLocales []schema.LocaleCode }

Source core/config.go:87