From 0d86417b47313834dbdd7e884f0bf61c87d9cb7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Thu, 23 Feb 2023 13:26:23 +0100 Subject: [PATCH] Fix translation on object --- site/scripts/i18n/translate-rules.js | 2 +- site/source/locales/rules-en.yaml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/site/scripts/i18n/translate-rules.js b/site/scripts/i18n/translate-rules.js index 4175d5049..6844763f1 100644 --- a/site/scripts/i18n/translate-rules.js +++ b/site/scripts/i18n/translate-rules.js @@ -18,7 +18,7 @@ const translateObject = (paths, arr) => const res = paths.reduce((obj, key) => obj[key], resolved) res[dot][k] = '[automatic] ' + trad } else { - translateObject([...paths, dot, k], v) + return await translateObject([...paths, dot, k], v) } }) ) diff --git a/site/source/locales/rules-en.yaml b/site/source/locales/rules-en.yaml index 73273b769..c6224dd7e 100644 --- a/site/source/locales/rules-en.yaml +++ b/site/source/locales/rules-en.yaml @@ -7459,6 +7459,21 @@ salarié . contrat . CDD . motif: titre.en: '[automatic] Mission contract' titre.fr: Contrat de mission remplacement: + description.en: > + [automatic] We group the following cases in this category. + + + - Replacement of an employee in case of : + - Absence; + - Temporary change to part-time work, concluded by an amendment to the employment contract or by a written exchange between the employee and his employer; + - Suspension of the employment contract; + - Final departure preceding the elimination of his workstation after consultation of the works council or, failing that, of the staff representatives, if any; + - Waiting for the employee recruited on a permanent contract to replace him/her to take up his/her duties; + + - Replacement of the head of a craft, industrial or commercial company, of a person practicing a liberal profession, of his or her spouse effectively participating in the activity of the company on a professional and usual basis or of a non-salaried partner of a professional partnership, a partnership of means, a liberal practice partnership or any other legal person practicing a liberal profession; + + + - Replacement of the head of a farm or a company mentioned in 1° to 4° of article L. 722-1 of the rural and maritime fishing code, of a family helper, of a partner in the farm, or of their spouse mentioned in article L. 722-10 of the same code, provided that he or she is effectively participating in the activity of the farm or company; description.fr: > Nous regroupons dans cette catégorie les cas suivants.