Changes the language of a draft post and replaces its categories with their translations in the specified language.
Category IDs are replaced with the IDs of the categories' translations in the specified language. Categories that have no translation in that language are removed. Tag IDs and related post IDs are cleared, because tags and related posts are language specific. If the draft post is published, the published post is updated in the same way.
Changing the language to the draft post's current language fails with an INVALID_ARGUMENT error. Changing it to a
language that already exists in the same translation group fails with an ALREADY_EXISTS error.
To create a translated copy instead of changing the language in place, call Translate Draft.
You can only call this method when authenticated as a Wix app or Wix user identity.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.