type

LocaleOptions

Locale selection for one single-document Local API operation.

Properties

PropertyTypeDescription
Localeschema.LocaleCodeContent locale; empty selects the application default.
FallbackLocales[]schema.LocaleCodeReplace the configured fallback chain when non-nil.
DisableFallbackboolRequire an exact value in Locale.
AllLocalesboolReturn 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 }

Source core/local.go:117