method

RiduClient.copyLocale

Copy localized values between locales on one document; from and to define the locale scope.

Arguments

ArgumentTypeDescription
collectionSlugThe collection value.
idstringThe id value.
inputCopyLocaleInput<LocaleFor<Config>>The input value.
optionsRevisionOptions | undefinedThe options value.

Returns

The declared result.

Promise<OutputFor<Config, Slug>>

Full signature

RiduClient.copyLocale<Slug extends CollectionSlug<Config>>( collection: Slug, id: string, input: CopyLocaleInput<LocaleFor<Config>>, options?: RevisionOptions, ): Promise<OutputFor<Config, Slug>>

Source packages/sdk/src/types.ts:1137

Related types

  • CollectionSlug

    The generated union of collection slugs.

  • CopyLocaleInput

    Source and destination locale codes for a copy operation.

  • RevisionOptions

    Revision and transport options for operations without locale query semantics.

  • OutputFor

    Resolve a collection document output type.