method

LocalAPI.CopyGlobalLocale

func (local *LocalAPI) CopyGlobalLocale( ctx context.Context, slug string, source, target schema.LocaleCode, expectedRevision int, actor *store.Document, ) (store.Document, error)

Copy every localized singleton field from one locale to another.

Source core/local.go:837

@param ctx
The ctx value.
@param slug
The slug 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.

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.