method

RiduClient.copyLocale

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

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

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

@param collection
The collection value.
@param id
The id value.
@param input
The input value.
@param options
The options value.
@returns
The declared result.

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.