Updates a translation content item by ID.
To remove a field, pass the field key with an empty object as the value. For example:
{
"fields": {
"title": {}
}
}
function updateContent(
_id: string,
content: UpdateContent,
options: UpdateContentOptions,
): Promise<Content>;
Translation content ID.
import { translationContents } from "@wix/multilingual";
async function updateContent(id, content, options) {
const response = await translationContents.updateContent(
id,
content,
options,
);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.