mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 21:18:01 +02:00
add translatable string for artist>subscribers
This commit is contained in:
parent
bb61809785
commit
f638ebbdb8
3 changed files with 13 additions and 8 deletions
|
@ -3,11 +3,14 @@ import { ref } from 'vue';
|
|||
import Btn from './Btn.vue';
|
||||
|
||||
import { useStore } from '@/scripts/util.js';
|
||||
|
||||
import { useResults, useArtist } from '@/stores/results.js';
|
||||
import { useI18n } from '@/stores/misc.js';
|
||||
|
||||
const artist = useArtist(),
|
||||
results = useResults(),
|
||||
store = useStore();
|
||||
store = useStore(),
|
||||
{ t } = useI18n();
|
||||
|
||||
const subs = JSON.parse(store.subs ? store.subs : '[]'),
|
||||
hash = artist.state.hash,
|
||||
|
@ -43,9 +46,9 @@ function Sub() {
|
|||
@click="
|
||||
results.getAlbum('/playlist?list=' + artist.state.playlistId)
|
||||
" />
|
||||
<span class="us-box subs" :data-active="isSub" @click="Sub">{{
|
||||
artist.state.subscriberCount || 0
|
||||
}}</span>
|
||||
<span class="us-box subs" :data-active="isSub" @click="Sub">
|
||||
{{ artist.state.subscriberCount || 0 }} {{ t('artist.subscribers') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -106,10 +109,6 @@ p.more {
|
|||
.subs {
|
||||
transition: background-color 0.4s ease, color 0.4s ease;
|
||||
}
|
||||
.subs::after {
|
||||
content: ' Subscribers';
|
||||
font-weight: bold;
|
||||
}
|
||||
.subs:hover,
|
||||
.subs[data-active='true'] {
|
||||
background-color: var(--color-foreground);
|
||||
|
|
|
@ -37,6 +37,9 @@
|
|||
"sync": "Wiedergabelisten synchronisieren",
|
||||
"select": "Hinzufügende Wiedergabeliste auswählen"
|
||||
},
|
||||
"artist": {
|
||||
"subscribers": "Abonnenten"
|
||||
},
|
||||
"pref": {
|
||||
"worst": "am Schlechten",
|
||||
"theme": "Farbschema",
|
||||
|
|
|
@ -37,6 +37,9 @@
|
|||
"sync": "Sync playlists",
|
||||
"select": "Select Playlist to Add"
|
||||
},
|
||||
"artist": {
|
||||
"subscribers": "Subscribers"
|
||||
},
|
||||
"pref": {
|
||||
"theme": "Theme",
|
||||
"dark": "Dark (Default)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue