Explorar o código

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
HJ %!s(int64=2) %!d(string=hai) anos
pai
achega
0300db6c63
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 1 1
      src/components/media_modal/media_modal.vue
  2. 2 1
      src/i18n/en.json

+ 1 - 1
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"

+ 2 - 1
src/i18n/en.json

@@ -118,7 +118,8 @@
   },
   "media_modal": {
     "previous": "Previous",
-    "next": "Next"
+    "next": "Next",
+    "counter": "{current} / {total}"
   },
   "nav": {
     "about": "About",