add t/strings for subscribers (AlbumItem)

This commit is contained in:
vrifox 2023-07-18 17:19:21 +02:00
parent 10201bb6b1
commit b5a585174e
No known key found for this signature in database
GPG key ID: D40098E5B60B2197

View file

@ -1,7 +1,10 @@
<script setup>
import { useRand } from '@/scripts/colors.js';
const rand = useRand();
import { useI18n } from '@/stores/misc.js';
const rand = useRand(),
{ t } = useI18n();
defineProps({
name: String,
@ -24,7 +27,7 @@ defineEmits(['open-album']);
<img class="card-bg bg-img pop-2" :src="art" loading="lazy" alt />
<div class="card-text">
<h4>{{ name }}</h4>
<h4>{{ name.replace('subscribers', t('artist.subscribers')) }}</h4>
<i>{{ author }}</i>
</div>
</div>