Skip to content

Commit

Permalink
ajout de la variable {{owner}} dans le texte associé aux versions d'u…
Browse files Browse the repository at this point in the history
…n article
  • Loading branch information
RochDLY committed Mar 8, 2024
1 parent 234f405 commit 05cda5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion front/src/components/Write/Versions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function Version ({ articleId, compareTo, readOnly, selectedVersion, v }) {
{!renaming && <p>
{v.owner && (
<span className={styles.author}>
{t('article.by.text')}
{t('article.by.text', {owner: v.owner.displayName || v.owner.username})}
</span>
)}
<span className={styles.momentsAgo}>
Expand Down
2 changes: 1 addition & 1 deletion front/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion front/src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit 05cda5a

Please sign in to comment.