Process of updating of treatment translations
Why
Sometimes we have requests from product support to update the treatment translations (like this).
Update Process
Usually, we have a link to a google sheet like this with the list of all the new necessary translations that should be applied for a treatment. To update them we need to:
- understand that treatment use
Uala::ModelProps::Translatableconcern that gives the model ability to have translations in the separate data table (treatment_translationsin this case) and associationtranslations'. So, for each locale we have a separate record in thetreatment_translations` table. - create the
csvfile with the list of treatments to update, where each row has all necessary translations. The columns are:id-idof the treatmentname_it- name for the italian localeshort_name_it- short name for the italian localedescription_it- description for the italian localename_fr- name for the french localeshort_name_fr- short name for the french localedescription_fr- description for the french locale- ... - same for other locales
- run the
Maintenance::UpdateTreatmentTranslationson thehttps://admin.uala.com/maintenance_tasks/tasks/page with thecsvfile from the previous step