Add translation to aria labels
This commit is contained in:
parent
c240e37be9
commit
8806dc92f7
|
@ -464,7 +464,7 @@ function readPromo() {
|
||||||
const accessibleLabel = computed(() => {
|
const accessibleLabel = computed(() => {
|
||||||
let label = `${props.note.user.username}; `;
|
let label = `${props.note.user.username}; `;
|
||||||
if (props.note.renote) {
|
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) {
|
if (props.note.renote.cw) {
|
||||||
label += `content warning: ${props.note.renote.cw}; `;
|
label += `content warning: ${props.note.renote.cw}; `;
|
||||||
} else {
|
} else {
|
||||||
|
@ -478,7 +478,7 @@ const accessibleLabel = computed(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const date = new Date(props.note.createdAt);
|
const date = new Date(props.note.createdAt);
|
||||||
label += `${date.toDateString()}`;
|
label += `${date.toLocaleTimeString()}`;
|
||||||
return label;
|
return label;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
<div v-if="isMobile" class="buttons">
|
<div v-if="isMobile" class="buttons">
|
||||||
<button
|
<button
|
||||||
aria-label="Menu"
|
:aria-label="i18n.t('menu')"
|
||||||
class="button nav _button"
|
class="button nav _button"
|
||||||
@click="drawerMenuShowing = true"
|
@click="drawerMenuShowing = true"
|
||||||
>
|
>
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
aria-label="Home"
|
:aria-label="i18n.t('home')"
|
||||||
class="button home _button"
|
class="button home _button"
|
||||||
@click="
|
@click="
|
||||||
mainRouter.currentRoute.value.name === 'index'
|
mainRouter.currentRoute.value.name === 'index'
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
aria-label="Notifications"
|
:aria-label="i18n.t('notifications')"
|
||||||
class="button notifications _button"
|
class="button notifications _button"
|
||||||
@click="
|
@click="
|
||||||
mainRouter.push('/my/notifications');
|
mainRouter.push('/my/notifications');
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
aria-label="Chat"
|
:aria-label="i18n.t('messaging')"
|
||||||
class="button messaging _button"
|
class="button messaging _button"
|
||||||
@click="
|
@click="
|
||||||
mainRouter.push('/my/messaging');
|
mainRouter.push('/my/messaging');
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
aria-label="Widgets"
|
:aria-label="i18n.t('_deck._columns.widgets')"
|
||||||
class="button widget _button"
|
class="button widget _button"
|
||||||
@click="widgetsShowing = true"
|
@click="widgetsShowing = true"
|
||||||
>
|
>
|
||||||
|
@ -116,7 +116,7 @@
|
||||||
<button
|
<button
|
||||||
v-if="isMobile && mainRouter.currentRoute.value.name === 'index'"
|
v-if="isMobile && mainRouter.currentRoute.value.name === 'index'"
|
||||||
ref="postButton"
|
ref="postButton"
|
||||||
aria-label="Post"
|
:aria-label="i18n.t('note')"
|
||||||
class="postButton button post _button"
|
class="postButton button post _button"
|
||||||
@click="os.post()"
|
@click="os.post()"
|
||||||
>
|
>
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
"
|
"
|
||||||
ref="postButton"
|
ref="postButton"
|
||||||
class="postButton button post _button"
|
class="postButton button post _button"
|
||||||
aria-label="New Chat"
|
:aria-label="i18n.t('startMessaging')"
|
||||||
@click="messagingStart"
|
@click="messagingStart"
|
||||||
>
|
>
|
||||||
<i class="ph-user-plus ph-bold ph-lg"></i>
|
<i class="ph-user-plus ph-bold ph-lg"></i>
|
||||||
|
|
Loading…
Reference in New Issue