From 05cda5a7ae6856d086ddf440d2b14aa271a58ad5 Mon Sep 17 00:00:00 2001 From: RochDLY Date: Fri, 8 Mar 2024 20:28:37 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20de=20la=20variable=20{{owner}}=20dans?= =?UTF-8?q?=20le=20texte=20associ=C3=A9=20aux=20versions=20d'un=20article?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/components/Write/Versions.jsx | 2 +- front/src/locales/en/translation.json | 2 +- front/src/locales/fr/translation.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/front/src/components/Write/Versions.jsx b/front/src/components/Write/Versions.jsx index d115dca40..cae230073 100644 --- a/front/src/components/Write/Versions.jsx +++ b/front/src/components/Write/Versions.jsx @@ -84,7 +84,7 @@ function Version ({ articleId, compareTo, readOnly, selectedVersion, v }) { {!renaming &&

{v.owner && ( - {t('article.by.text')} + {t('article.by.text', {owner: v.owner.displayName || v.owner.username})} )} diff --git a/front/src/locales/en/translation.json b/front/src/locales/en/translation.json index 08f9a4400..80b22f96d 100644 --- a/front/src/locales/en/translation.json +++ b/front/src/locales/en/translation.json @@ -48,7 +48,7 @@ "article.versions.title": "Versions", "article.workspaces.title": "Workspaces", "article.tags.title": "Tags", - "article.by.text": "by", + "article.by.text": "by {{owner}}", "article.deleteModal.title": "Delete an article", "article.deleteModal.confirmMessage": "Are you sure you want to delete this article?", "article.deleteModal.contributorsRemovalNote": "If you delete this article, contributors won't have access to this article anymore.", diff --git a/front/src/locales/fr/translation.json b/front/src/locales/fr/translation.json index 5ed0b76e5..276d03881 100644 --- a/front/src/locales/fr/translation.json +++ b/front/src/locales/fr/translation.json @@ -48,7 +48,7 @@ "article.versions.title": "Versions", "article.workspaces.title": "Espaces de travail", "article.tags.title": "Étiquettes", - "article.by.text": "par", + "article.by.text": "par {{owner}}", "article.deleteModal.title": "Supprimer un article", "article.deleteModal.confirmMessage": "Êtes-vous sûr de vouloir supprimer cet article ?", "article.deleteModal.contributorsRemovalNote": "Si vous supprimez cet article, les contributeurs ne pourront plus accéder à celui-ci.",