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.

Source core/local.go:585

@param ctx
The ctx value.
@param collection
The collection value.
@param id
The id value.
@param source
The source value.
@param target
The target value.
@param expectedRevision
The expectedRevision value.
@param actor
The actor value.
@returns
The declared result.

Runs as one ordinary authorized update with optimistic concurrency. CopyLocaleWithOptions supports exact actor identity and response controls.

Related types

  • LocalAPI

    In-process content operations that share the REST authorization and lifecycle pipeline.

  • LocaleCode

    A validated locale identity used by operations, manifests, and storage.

  • Document

    A stored document with status and version metadata.