feat(i18n): locales for alt text (#1580)

zio/stable
Evan Boehs 2023-02-02 16:42:21 -05:00 committed by GitHub
parent fc706f9050
commit 3b3d4906be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -176,9 +176,9 @@ useIntersectionObserver(video, (entries) => {
: 'rounded-1 bg-black/65 text-white hover:bg-black px1.2 py0.2'"
>
<div hidden>
read {{ attachment.type }} description
{{ $t('status.img_alt.read', [attachment.type]) }}
</div>
ALT
{{ $t('status.img_alt.ALT') }}
</button>
<template #popper>
<div p4 flex flex-col gap-2 max-w-130>

View File

@ -452,8 +452,10 @@
"filter_removed_phrase": "Removed by filter",
"filter_show_anyway": "Show anyway",
"img_alt": {
"ALT": "ALT",
"desc": "Description",
"dismiss": "Dismiss"
"dismiss": "Dismiss",
"read": "Read {0} description"
},
"poll": {
"count": "{0} votes|{0} vote|{0} votes",