From d7f751a1a0aa01b189ef6d80de5d534b15f150a1 Mon Sep 17 00:00:00 2001
From: TalonTheDragon <talon@iamtalon.me>
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 63aa8978d..c43ee0c3d 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 84dd742a5..6a39a739b 100644
--- a/packages/client/src/ui/universal.vue
+++ b/packages/client/src/ui/universal.vue
@@ -36,7 +36,7 @@
 
 		<div v-if="isMobile" class="buttons">
 			<button
-			aria-label="Menu"
+			:aria-label="i18n.t('menu')"
 				class="button nav _button"
 				@click="drawerMenuShowing = true"
 			>
@@ -48,7 +48,7 @@
 				</div>
 			</button>
 			<button
-			aria-label="Home"
+			:aria-label="i18n.t('home')"
 				class="button home _button"
 				@click="
 					mainRouter.currentRoute.value.name === 'index'
@@ -65,7 +65,7 @@
 				</div>
 			</button>
 			<button
-			aria-label="Notifications"
+			:aria-label="i18n.t('notifications')"
 				class="button notifications _button"
 				@click="
 					mainRouter.push('/my/notifications');
@@ -83,7 +83,7 @@
 				</div>
 			</button>
 			<button
-			aria-label="Chat"
+			:aria-label="i18n.t('messaging')"
 				class="button messaging _button"
 				@click="
 					mainRouter.push('/my/messaging');
@@ -103,7 +103,7 @@
 				</div>
 			</button>
 			<button
-			aria-label="Widgets"
+			:aria-label="i18n.t('_deck._columns.widgets')"
 				class="button widget _button"
 				@click="widgetsShowing = true"
 			>
@@ -116,7 +116,7 @@
 		<button
 			v-if="isMobile && mainRouter.currentRoute.value.name === 'index'"
 			ref="postButton"
-			aria-label="Post"
+			:aria-label="i18n.t('note')"
 			class="postButton button post _button"
 			@click="os.post()"
 		>
@@ -128,7 +128,7 @@
 			"
 			ref="postButton"
 			class="postButton button post _button"
-			aria-label="New Chat"
+			:aria-label="i18n.t('startMessaging')"
 			@click="messagingStart"
 		>
 			<i class="ph-user-plus ph-bold ph-lg"></i>