method
LocalAPI.CopyGlobalLocale
Copy every localized singleton field from one locale to another.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
slug | string | The slug value. |
source | schema.LocaleCode | The source value. |
target | schema.LocaleCode | The target value. |
options | MutationOptions | The options value. |
Returns
The declared result.
(store.Document, error)Full signature
func (local *LocalAPI) CopyGlobalLocale(
ctx context.Context,
slug string,
source,
target schema.LocaleCode,
options MutationOptions,
) (store.Document, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
LocaleCodeA validated locale identity used by operations, manifests, and storage.
MutationOptionsAuthorization, optimistic concurrency, response population, create status, and locale controls for one write.
DocumentA stored document with status and version metadata.