type
LocaleOptions
Locale selection for one single-document Local API operation.
Properties
| Property | Type | Description |
|---|---|---|
Locale | schema.LocaleCode | Content locale; empty selects the application default. |
FallbackLocales | []schema.LocaleCode | Replace the configured fallback chain when non-nil. |
DisableFallback | bool | Require an exact value in Locale. |
AllLocales | bool | Return locale-keyed values for localized fields. |
How it works
The root package re-exports this type as ridu.LocaleOptions. When a variadic method receives more than one value, the last one is used.
Full signature
type LocaleOptions struct {
Locale schema.LocaleCode
FallbackLocales []schema.LocaleCode
DisableFallback bool
AllLocales bool
}