From be61ffb6fe500cdbfa83b9cd131b8e72779f23c2 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 4 Oct 2023 18:17:35 +0200 Subject: refactor(components): rewrite BackToTop component * replace `link` prop with `anchor` prop * add a `label` prop to let consumer handle the accessible name --- src/i18n/en.json | 8 ++++---- src/i18n/fr.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/i18n') diff --git a/src/i18n/en.json b/src/i18n/en.json index e50be99..cf1526b 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -299,6 +299,10 @@ "defaultMessage": "{postsCount, plural, =0 {No articles} one {# article} other {# articles}}", "description": "BlogPage: posts count meta" }, + "OHvb01": { + "defaultMessage": "Back to top", + "description": "SiteFooter: an accessible name for the back to top button" + }, "OI0N37": { "defaultMessage": "Written by:", "description": "Meta: author label" @@ -543,10 +547,6 @@ "defaultMessage": "Use Ctrl+c to copy", "description": "usePrism: copy button error text" }, - "m+SUSR": { - "defaultMessage": "Back to top", - "description": "BackToTop: link text" - }, "nGss/j": { "defaultMessage": "Ackee tracking (analytics)", "description": "AckeeToggle: tooltip title" diff --git a/src/i18n/fr.json b/src/i18n/fr.json index 4e10be0..a3b21b8 100644 --- a/src/i18n/fr.json +++ b/src/i18n/fr.json @@ -299,6 +299,10 @@ "defaultMessage": "{postsCount, plural, =0 {0 article} one {# article} other {# articles}}", "description": "BlogPage: posts count meta" }, + "OHvb01": { + "defaultMessage": "Retour en haut de page", + "description": "SiteFooter: an accessible name for the back to top button" + }, "OI0N37": { "defaultMessage": "Écrit par :", "description": "Meta: author label" @@ -543,10 +547,6 @@ "defaultMessage": "Utilisez Ctrl+c pour copier", "description": "usePrism: copy button error text" }, - "m+SUSR": { - "defaultMessage": "Retour en haut de page", - "description": "BackToTop: link text" - }, "nGss/j": { "defaultMessage": "Suivi Ackee (analytique)", "description": "AckeeToggle: tooltip title" -- cgit v1.2.3