logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 0300db6c6356c536694a9fcbb32a52abc81c52d5
parent 9bc7d99e1651a00ed787a526517e34cc7a364001
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date:   Mon, 21 Feb 2022 16:15:16 +0000

Merge branch 'from/develop/tusooa/media-modal-counter-i18n' into 'develop'

Make media modal counter go through i18n

See merge request pleroma/pleroma-fe!1436

Diffstat:

Msrc/components/media_modal/media_modal.vue2+-
Msrc/i18n/en.json3++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/components/media_modal/media_modal.vue b/src/components/media_modal/media_modal.vue @@ -68,7 +68,7 @@ <span class="counter" > - {{ currentIndex + 1 }} / {{ media.length }} + {{ $tc('media_modal.counter', currentIndex + 1, { current: currentIndex + 1, total: media.length }) }} </span> <span v-if="loading" diff --git a/src/i18n/en.json b/src/i18n/en.json @@ -118,7 +118,8 @@ }, "media_modal": { "previous": "Previous", - "next": "Next" + "next": "Next", + "counter": "{current} / {total}" }, "nav": { "about": "About",