type
Locale
One content locale and its ordered fallback chain.
Properties
| Property | Type | Description |
|---|---|---|
Code | schema.LocaleCode | Stable locale code used by APIs and storage. |
Label | string | Author-facing locale name. |
RTL | bool | Uses right-to-left admin presentation. |
FallbackLocales | []schema.LocaleCode | Configured 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
}