From 8806dc92f7242192217261b9c4206321bec48bcf Mon Sep 17 00:00:00 2001 From: TalonTheDragon Date: Sun, 21 May 2023 23:02:22 +0200 Subject: [PATCH] Add translation to aria labels --- packages/client/src/components/MkNote.vue | 4 ++-- packages/client/src/ui/universal.vue | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index 63aa8978d4..c43ee0c3d0 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -464,7 +464,7 @@ function readPromo() { const accessibleLabel = computed(() => { let label = `${props.note.user.username}; `; if (props.note.renote) { - label += `boosted ${props.note.renote.user.username}; `; + label += `${i18n.t("renoted")} ${props.note.renote.user.username}; `; if (props.note.renote.cw) { label += `content warning: ${props.note.renote.cw}; `; } else { @@ -478,7 +478,7 @@ const accessibleLabel = computed(() => { } } const date = new Date(props.note.createdAt); - label += `${date.toDateString()}`; + label += `${date.toLocaleTimeString()}`; return label; }) diff --git a/packages/client/src/ui/universal.vue b/packages/client/src/ui/universal.vue index 84dd742a5e..6a39a739b8 100644 --- a/packages/client/src/ui/universal.vue +++ b/packages/client/src/ui/universal.vue @@ -36,7 +36,7 @@