feat: poll plural support (#375)

zio/stable
Joaquín Sánchez 2022-12-08 11:54:34 +01:00 committed by GitHub
parent 00b835444b
commit 2fed89be9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View File

@ -57,7 +57,7 @@ async function vote(e: Event) {
</div>
</template>
<div text-sm>
{{ $t('status.poll.count', [poll.votersCount]) }}
{{ $t('status.poll.count', poll.votersCount ?? 0) }}
&middot;
<CommonTooltip :content="expiredTimeFormatted" class="inline-block" placement="right">
<time :datetime="poll.expiresAt!">{{ $t(poll.expired ? 'status.poll.finished' : 'status.poll.ends', [expiredTimeAgo]) }}</time>

View File

@ -155,7 +155,7 @@
"filter_removed_phrase": "Removed by filter",
"filter_show_anyway": "Show anyway",
"poll": {
"count": "{0} votes",
"count": "{n} votes",
"ends": "ends {0}",
"finished": "finished {0}"
},

View File

@ -155,9 +155,9 @@
"filter_removed_phrase": "Eliminado por filtrado",
"filter_show_anyway": "Mostrar de todas formas",
"poll": {
"count": "{0} votos|{0} voto|{0} votos",
"ends": "finaliza el {0}",
"finished": "finalizada el {0}"
"count": "{n} votos|{n} voto|{n} votos",
"ends": "finaliza {0}",
"finished": "finalizada {0}"
},
"reblogged": "{0} retooteó",
"spoiler_show_less": "Mostrar menos",
@ -178,7 +178,7 @@
"time_ago_options": {
"day_future": "dentro de 0 días|mañana|dentro de {n} días",
"day_past": "hace 0 días|ayer|hace {n} días",
"hour_future": "dentro de 0 horas|dentro de 1 hora|dentro {n} horas",
"hour_future": "dentro de 0 horas|dentro de 1 hora|dentro de {n} horas",
"hour_past": "hace 0 horas|hace 1 hora|hace {n} horas",
"just_now": "ahora mismo",
"minute_future": "dentro de 0 minutos|dentro de 1 minuto|dentro de {n} minutos",

View File

@ -155,7 +155,7 @@
"filter_removed_phrase": "Caché par le filtre",
"filter_show_anyway": "Montrer coûte que coûte",
"poll": {
"count": "{0} votes",
"count": "{n} votes",
"ends": "se clôt {0}",
"finished": "clos {0}"
},

View File

@ -154,7 +154,7 @@
"filter_removed_phrase": "从筛选中移除",
"filter_show_anyway": "仍然展示",
"poll": {
"count": "{0} 次投票",
"count": "{n} 次投票",
"ends": "将在 {0} 结束",
"finished": "已在 {0} 结束"
},