Add support for paragraphs in translations

Created on 24 June 2024, 5 days ago
Updated 26 June 2024, 3 days ago

Problem/Motivation

Add support for paragraph translations, when you now click on translate node only the node fields are translated.

Steps to reproduce

Proposed resolution

  1. Adjust the translatecontroller to build a tree of the content to translate
  2. Json encode the content en send it to chatgpt for translation
  3. Add the nested paragraphs recursive to the node

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs work

Version

2.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium Wouter Waeytens

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Wouter Waeytens
  • πŸ‡§πŸ‡ͺBelgium JonJacobs

    Needed this also, I've worked a little bit more on the previous patch, with the following changes:
    - For some situations where paragraphs were translated, all existing translations were overwritten, should now be fixed
    - Changed how the calls to chatgpt are made, instead of 1 big call (which resulted in a lot of tokens being used + keys being overwritten) the values are now being loaded separately
    - Kept all existing paragraph fields instead of only the translatable ones

    Probably needs some more refining and cleaning up.

  • Status changed to Needs work 3 days ago
  • πŸ‡§πŸ‡ͺBelgium JonJacobs
Production build 0.69.0 2024