method
LocalAPI.CopyLocale
func (local *LocalAPI) CopyLocale(
ctx context.Context,
collection,
id string,
source,
target schema.LocaleCode,
expectedRevision int,
actor *store.Document,
) (store.Document, error)Copy every localized field from one locale to another.
Runs as one ordinary authorized update with optimistic concurrency. CopyLocaleWithOptions supports exact actor identity and response controls.
Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
LocaleCodeA validated locale identity used by operations, manifests, and storage.
DocumentA stored document with status and version metadata.