26B/unbabble

Change Language (Advanced)

Closed this issue · 2 comments

When changing the language a lot of considerations need to take place to maintain content consistency.

  • Terms need to be changed to their respective translations.
  • Attachments need to be changed in the content and meta fields. If they exist in the target language they should be replaced by the new ID, if not their relation should be removed.

I think this requires some further discussion. There is the question of what to do when the entity has no translations. Should we fallback to the main entity?

what if the entity has no translations what so ever? Should we consider it as untranslatable? Maybe considering this is the fastest option, because checking to see if the post_type is translatable can take/compound a lot of time.

The description was updated and should conform to what we now view as the solution.