aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-02-21 16:15:16 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-02-21 16:15:16 +0000
commit0300db6c6356c536694a9fcbb32a52abc81c52d5 (patch)
tree681df20c69438d87ddccf0e3a1a927fe356ba1d9 /src
parent9bc7d99e1651a00ed787a526517e34cc7a364001 (diff)
parentc7690aecd024e3b709cf0c707eba41ef119ef1e0 (diff)
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 (limited to 'src')
-rw-r--r--src/components/media_modal/media_modal.vue2
-rw-r--r--src/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
index bfe7ee6a..8680267b 100644
--- 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
index 716fff66..8eb7fcc6 100644
--- 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",