Skip to main content

TranslatableSaver

A helper which contains methods for creating and updating entities which implement the Translatable interface.

Example

Ts
Signature

constructor

method(connection: TransactionalConnection) => TranslatableSaver

create

method(options: CreateTranslatableOptions<T>) => Promise<T>

Create a translatable entity, including creating any translation entities according to the translations array.

update

method(options: UpdateTranslatableOptions<T>) => Promise<T>

Update a translatable entity. Performs a diff of the translations array in order to perform the correct operation on the translations.

Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page