[web] Fix translation key

This commit is contained in:
Alain Nussbaumer 2025-03-08 12:02:15 +01:00
parent 23f624aec5
commit 368bb18aa8
15 changed files with 237 additions and 195 deletions

View File

@ -6,7 +6,6 @@
"cancel": "Abbrechen",
"clear": "Alle entfernen",
"edit": "Bearbeiten",
"filter": "Filter",
"login": "Einloggen",
"logout": "Ausloggen",
"hide-previous": "Vorherige verbergen",
@ -142,40 +141,49 @@
"version": "Version {version}"
},
"albums": {
"hide-singles-help": "Nach Aktivierung werden keine Singles und Alben angezeigt, die nur in Playlisten enthalten sind.",
"hide-singles": "Nach Aktivierung werden keine Singles angezeigt",
"hide-spotify-help": "Nach Aktivierung werden keine Alben angezeigt, die nur in der Spotify-Bibliothek enthalten sind.",
"hide-spotify": "Verbirgt Spotify-Alben",
"title": "Alben",
"filter": {
"hide-singles": "Nach Aktivierung werden keine Singles angezeigt",
"hide-singles-help": "Nach Aktivierung werden keine Singles und Alben angezeigt, die nur in Playlisten enthalten sind.",
"hide-spotify": "Verbirgt Spotify-Alben",
"hide-spotify-help": "Nach Aktivierung werden keine Alben angezeigt, die nur in der Spotify-Bibliothek enthalten sind.",
"title": "Filtern"
},
"sort": {
"artist-name": "Künstler Name",
"artist-date": "Künstler Erscheinungsdatum",
"title": "Sortieren",
"name": "Name",
"recently-added": "Kürzlich hinzugefügt",
"recently-released": "Kürzlich erschienen"
}
"recently-released": "Kürzlich erschienen",
"title": "Sortieren"
},
"title": "Alben"
},
"artist": {
"hide-spotify-help": "Nach Aktivierung wird kein Inhalt angezeigt, der nur in der Spotify-Bibliothek enthalten ist.",
"hide-spotify": "Verbirgt Spotify-Inhalt",
"filter": {
"hide-spotify": "Verbirgt Spotify-Inhalt",
"hide-spotify-help": "Nach Aktivierung wird kein Inhalt angezeigt, der nur in der Spotify-Bibliothek enthalten ist.",
"title": "Filtern"
},
"sort": {
"title": "Sortieren",
"name": "Name",
"rating": "Bewertung",
"release-date": "Erscheinungsdatum"
"release-date": "Erscheinungsdatum",
"title": "Sortieren"
}
},
"artists": {
"sort": {
"title": "Sortieren",
"name": "Namen",
"recently-added": "Kürzlich hinzugefügt"
"filter": {
"hide-singles": "Nach Aktivierung werden keine Singles angezeigt",
"hide-singles-help": "Nach Aktivierung werden keine Singles und Alben angezeigt, die nur in Playlisten enthalten sind.",
"hide-spotify": "Verbirgt Künstler auf Spotify",
"hide-spotify-help": "Nach Aktivierung werden keine Alben angezeigt, die nur in der Spotify-Bibliothek enthalten sind.",
"title": "Filtern"
},
"sort": {
"name": "Namen",
"recently-added": "Kürzlich hinzugefügt",
"title": "Sortieren"
},
"hide-singles-help": "Nach Aktivierung werden keine Singles und Alben angezeigt, die nur in Playlisten enthalten sind.",
"hide-singles": "Nach Aktivierung werden keine Singles angezeigt",
"hide-spotify-help": "Nach Aktivierung werden keine Alben angezeigt, die nur in der Spotify-Bibliothek enthalten sind.",
"hide-spotify": "Verbirgt Künstler auf Spotify",
"title": "Künstler"
},
"audiobooks": {
@ -193,9 +201,9 @@
},
"composer": {
"sort": {
"title": "Sortieren",
"name": "Name",
"rating": "Bewertung"
"rating": "Bewertung",
"title": "Sortieren"
}
},
"composers": {
@ -206,9 +214,9 @@
},
"genre": {
"sort": {
"title": "Sortieren",
"name": "Name",
"rating": "Bewertung"
"rating": "Bewertung",
"title": "Sortieren"
}
},
"genres": {

View File

@ -6,7 +6,6 @@
"cancel": "Cancel",
"clear": "Clear",
"edit": "Edit",
"filter": "Filter",
"login": "Login",
"logout": "Logout",
"hide-previous": "Hide previous",
@ -142,40 +141,49 @@
"version": "Version {version}"
},
"albums": {
"hide-singles-help": "If active, hides singles and albums with tracks that only appear in playlists.",
"hide-singles": "Hide singles",
"hide-spotify-help": "If active, hides albums that only appear in your Spotify library.",
"hide-spotify": "Hide albums from Spotify",
"title": "Albums",
"filter": {
"hide-singles": "Hide singles",
"hide-singles-help": "If active, hides singles and albums with tracks that only appear in playlists.",
"hide-spotify": "Hide albums from Spotify",
"hide-spotify-help": "If active, hides albums that only appear in your Spotify library.",
"title": "Filter"
},
"sort": {
"artist-name": "Artist Name",
"artist-date": "Artist Release date",
"title": "Sort",
"name": "Name",
"recently-added": "Recently added",
"recently-released": "Recently released"
}
"recently-released": "Recently released",
"title": "Sort"
},
"title": "Albums"
},
"artist": {
"hide-spotify-help": "If active, hides the content only appearing in your Spotify library.",
"hide-spotify": "Hide the content from Spotify",
"filter": {
"hide-spotify": "Hide the content from Spotify",
"hide-spotify-help": "If active, hides the content only appearing in your Spotify library.",
"title": "Filter"
},
"sort": {
"title": "Sort",
"name": "Name",
"rating": "Rating",
"release-date": "Release date"
"release-date": "Release date",
"title": "Sort"
}
},
"artists": {
"sort": {
"title": "Sort",
"name": "Name",
"recently-added": "Recently added"
"filter": {
"hide-singles": "Hide singles",
"hide-singles-help": "If active, hides artists that only appear on singles or playlists.",
"hide-spotify": "Hide artists from Spotify",
"hide-spotify-help": "If active, hides artists that only appear in your Spotify library.",
"title": "Filter"
},
"sort": {
"name": "Name",
"recently-added": "Recently added",
"title": "Sort"
},
"hide-singles-help": "If active, hides artists that only appear on singles or playlists.",
"hide-singles": "Hide singles",
"hide-spotify-help": "If active, hides artists that only appear in your Spotify library.",
"hide-spotify": "Hide artists from Spotify",
"title": "Artists"
},
"audiobooks": {
@ -193,9 +201,9 @@
},
"composer": {
"sort": {
"title": "Sort",
"name": "Name",
"rating": "Rating"
"rating": "Rating",
"title": "Sort"
}
},
"composers": {
@ -206,9 +214,9 @@
},
"genre": {
"sort": {
"title": "Sort",
"name": "Name",
"rating": "Rating"
"rating": "Rating",
"title": "Sort"
}
},
"genres": {

View File

@ -6,7 +6,6 @@
"cancel": "Annuler",
"clear": "Effacer",
"edit": "Éditer",
"filter": "Filtrer",
"login": "Se connecter",
"logout": "Se déconnecter",
"hide-previous": "Masquer lhistorique",
@ -142,40 +141,49 @@
"version": "Version {version}"
},
"albums": {
"hide-singles-help": "Si actif, masque les singles et les albums dont les pistes napparaissent que dans les listes de lecture.",
"hide-singles": "Masquer les singles",
"hide-spotify-help": "Si actif, masque les albums qui napparaissent que dans votre bibliothèque Spotify.",
"hide-spotify": "Masquer les albums de Spotify",
"title": "Albums",
"filter": {
"hide-singles": "Masquer les singles",
"hide-singles-help": "Si actif, masque les singles et les albums dont les pistes napparaissent que dans les listes de lecture.",
"hide-spotify": "Masquer les albums de Spotify",
"hide-spotify-help": "Si actif, masque les albums qui napparaissent que dans votre bibliothèque Spotify.",
"title": "Filtrer"
},
"sort": {
"artist-name": "Artiste Nom",
"artist-date": "Artiste Date de sortie",
"title": "Trier",
"name": "Nom",
"recently-added": "Ajouts récents",
"recently-released": "Sorties récentes"
}
"recently-released": "Sorties récentes",
"title": "Trier"
},
"title": "Albums"
},
"artist": {
"hide-spotify-help": "Si actif, masque le contenu qui napparaît que dans votre bibliothèque Spotify.",
"hide-spotify": "Masquer le contenu de Spotify",
"filter": {
"hide-spotify": "Masquer le contenu de Spotify",
"hide-spotify-help": "Si actif, masque le contenu qui napparaît que dans votre bibliothèque Spotify.",
"title": "Filtrer"
},
"sort": {
"title": "Trier",
"name": "Nom",
"rating": "Classement",
"release-date": "Date de sortie"
"release-date": "Date de sortie",
"title": "Trier"
}
},
"artists": {
"sort": {
"title": "Trier",
"name": "Nom",
"recently-added": "Ajouts récents"
"filter": {
"hide-singles": "Masquer les singles",
"hide-singles-help": "Si actif, masque les artistes qui napparaissent que dans des singles ou des listes de lecture.",
"hide-spotify": "Masquer les artistes de Spotify",
"hide-spotify-help": "Si actif, masque les artistes qui napparaissent que dans votre bibliothèque Spotify.",
"title": "Filtrer"
},
"sort": {
"name": "Nom",
"recently-added": "Ajouts récents",
"title": "Trier"
},
"hide-singles-help": "Si actif, masque les artistes qui napparaissent que dans des singles ou des listes de lecture.",
"hide-singles": "Masquer les singles",
"hide-spotify-help": "Si actif, masque les artistes qui napparaissent que dans votre bibliothèque Spotify.",
"hide-spotify": "Masquer les artistes de Spotify",
"title": "Artistes"
},
"audiobooks": {
@ -193,9 +201,9 @@
},
"composer": {
"sort": {
"title": "Trier",
"name": "Nom",
"rating": "Classement"
"rating": "Classement",
"title": "Trier"
}
},
"composers": {
@ -206,9 +214,9 @@
},
"genre": {
"sort": {
"title": "Trier",
"name": "Nom",
"rating": "Classement"
"rating": "Classement",
"title": "Trier"
}
},
"genres": {

View File

@ -6,7 +6,6 @@
"cancel": "取消",
"clear": "清除",
"edit": "编辑",
"filter": "筛选",
"login": "登入",
"logout": "退出",
"hide-previous": "隐藏历史",
@ -142,40 +141,49 @@
"version": "版本 {version}"
},
"albums": {
"hide-singles-help": "如果激活,将隐藏仅在播放列表出现的单曲和专辑",
"hide-singles": "隐藏单曲",
"hide-spotify-help": "如果激活将隐藏仅在Spotify资料库出现的专辑",
"hide-spotify": "隐藏来自Spotify的专辑",
"title": "专辑",
"filter": {
"hide-singles": "隐藏单曲",
"hide-singles-help": "如果激活,将隐藏仅在播放列表出现的单曲和专辑",
"hide-spotify": "隐藏来自Spotify的专辑",
"hide-spotify-help": "如果激活将隐藏仅在Spotify资料库出现的专辑",
"title": "专辑"
},
"sort": {
"artist-name": "艺人 名称",
"artist-date": "艺人 发行日期",
"title": "分类",
"name": "名称",
"recently-added": "最近添加",
"recently-released": "最近发行"
}
"recently-released": "最近发行",
"title": "分类"
},
"title": "张专辑"
},
"artist": {
"hide-spotify-help": "如果激活将隐藏只出现在Spotify库中的内容",
"hide-spotify": "隐藏来自Spotify的内容",
"filter": {
"hide-spotify": "隐藏来自Spotify的内容",
"hide-spotify-help": "如果激活将隐藏只出现在Spotify库中的内容",
"title": "专辑"
},
"sort": {
"title": "分类",
"name": "名称",
"rating": "评级",
"release-date": "发行日期"
"release-date": "发行日期",
"title": "分类"
}
},
"artists": {
"sort": {
"title": "分类",
"name": "名称",
"recently-added": "最近添加"
"filter": {
"hide-singles": "隐藏单曲",
"hide-singles-help": "如果激活,将隐藏仅在播放列表出现的单曲和专辑",
"hide-spotify": "隐藏来自Spotify的艺人",
"hide-spotify-help": "如果激活将隐藏仅在Spotify资料库出现的专辑",
"title": "专辑"
},
"sort": {
"name": "名称",
"recently-added": "最近添加",
"title": "分类"
},
"hide-singles-help": "如果激活,将隐藏仅在播放列表出现的单曲和专辑",
"hide-singles": "隐藏单曲",
"hide-spotify-help": "如果激活将隐藏仅在Spotify资料库出现的专辑",
"hide-spotify": "隐藏来自Spotify的艺人",
"title": "艺人"
},
"audiobooks": {
@ -193,9 +201,9 @@
},
"composer": {
"sort": {
"title": "分类",
"name": "名称",
"rating": "评级"
"rating": "评级",
"title": "分类"
}
},
"composers": {
@ -206,9 +214,9 @@
},
"genre": {
"sort": {
"title": "分类",
"name": "名称",
"rating": "评级"
"rating": "评级",
"title": "分类"
}
},
"genres": {

View File

@ -6,7 +6,6 @@
"cancel": "取消",
"clear": "清除",
"edit": "編輯",
"filter": "篩選",
"login": "登入",
"logout": "退出",
"hide-previous": "隱藏歷史",
@ -142,40 +141,49 @@
"version": "版本 {version}"
},
"albums": {
"hide-singles-help": "如果啓用,將隱藏僅在播放列表出現的單曲和專輯",
"hide-singles": "隱藏單曲",
"hide-spotify-help": "如果啓用將隱藏僅在Spotify資料庫出現的專輯",
"hide-spotify": "隱藏來自Spotify的專輯",
"title": "專輯",
"filter": {
"hide-singles": "隱藏單曲",
"hide-singles-help": "如果啓用,將隱藏僅在播放列表出現的單曲和專輯",
"hide-spotify": "隱藏來自Spotify的專輯",
"hide-spotify-help": "如果啓用將隱藏僅在Spotify資料庫出現的專輯",
"title": "篩選"
},
"sort": {
"artist-name": "藝人 名稱",
"artist-date": "藝人 發行日期",
"title": "分類",
"name": "名稱",
"recently-added": "最近新增",
"recently-released": "最近發行"
}
"recently-released": "最近發行",
"title": "分類"
},
"title": "專輯"
},
"artist": {
"hide-spotify-help": "如果啓用將隱藏只出現在Spotify庫中的內容",
"hide-spotify": "隱藏來自Spotify的內容",
"filter": {
"hide-spotify": "隱藏來自Spotify的內容",
"hide-spotify-help": "如果啓用將隱藏只出現在Spotify庫中的內容",
"title": "篩選"
},
"sort": {
"title": "分類",
"name": "名稱",
"rating": "評級",
"release-date": "發行日期"
"release-date": "發行日期",
"title": "分類"
}
},
"artists": {
"sort": {
"title": "分類",
"name": "名稱",
"recently-added": "最近新增"
"filter": {
"hide-singles": "隱藏單曲",
"hide-singles-help": "如果啓用,將隱藏僅在播放列表出現的單曲和專輯",
"hide-spotify": "隱藏來自Spotify的藝人",
"hide-spotify-help": "如果啓用將隱藏僅在Spotify資料庫出現的專輯",
"title": "篩選"
},
"sort": {
"name": "名稱",
"recently-added": "最近新增",
"title": "分類"
},
"hide-singles-help": "如果啓用,將隱藏僅在播放列表出現的單曲和專輯",
"hide-singles": "隱藏單曲",
"hide-spotify-help": "如果啓用將隱藏僅在Spotify資料庫出現的專輯",
"hide-spotify": "隱藏來自Spotify的藝人",
"title": "藝人"
},
"audiobooks": {
@ -193,9 +201,9 @@
},
"composer": {
"sort": {
"title": "分類",
"name": "名稱",
"rating": "評級"
"rating": "評級",
"title": "分類"
}
},
"composers": {
@ -206,9 +214,9 @@
},
"genre": {
"sort": {
"title": "分類",
"name": "名稱",
"rating": "評級"
"rating": "評級",
"title": "分類"
}
},
"genres": {

View File

@ -8,14 +8,14 @@
<div class="column">
<div
class="is-size-7 is-uppercase"
v-text="$t('page.albums.filter')"
v-text="$t('page.albums.filter.title')"
/>
<control-switch v-model="uiStore.hide_singles">
<template #label>
<span v-text="$t('page.albums.hide-singles')" />
<span v-text="$t('page.albums.filter.hide-singles')" />
</template>
<template #help>
<span v-text="$t('page.albums.hide-singles-help')" />
<span v-text="$t('page.albums.filter.hide-singles-help')" />
</template>
</control-switch>
<control-switch
@ -23,10 +23,10 @@
v-model="uiStore.hide_spotify"
>
<template #label>
<span v-text="$t('page.albums.hide-spotify')" />
<span v-text="$t('page.albums.filter.hide-spotify')" />
</template>
<template #help>
<span v-text="$t('page.albums.hide-spotify-help')" />
<span v-text="$t('page.albums.filter.hide-spotify-help')" />
</template>
</control-switch>
</div>

View File

@ -6,17 +6,17 @@
<div class="column">
<div
class="is-size-7 is-uppercase"
v-text="$t('page.artist.filter')"
v-text="$t('page.artist.filter.title')"
/>
<control-switch
v-if="spotify_enabled"
v-model="uiStore.hide_spotify"
>
<template #label>
<span v-text="$t('page.artist.hide-spotify')" />
<span v-text="$t('page.artist.filter.hide-spotify')" />
</template>
<template #help>
<span v-text="$t('page.artist.hide-spotify-help')" />
<span v-text="$t('page.artist.filter.hide-spotify-help')" />
</template>
</control-switch>
</div>

View File

@ -7,17 +7,17 @@
<div class="column">
<p
class="is-size-7 is-uppercase"
v-text="$t('page.artist.filter')"
v-text="$t('page.artist.filter.title')"
/>
<control-switch
v-if="spotify_enabled"
v-model="uiStore.hide_spotify"
>
<template #label>
<span v-text="$t('page.artist.hide-spotify')" />
<span v-text="$t('page.artist.filter.hide-spotify')" />
</template>
<template #help>
<span v-text="$t('page.artist.hide-spotify-help')" />
<span v-text="$t('page.artist.filter.hide-spotify-help')" />
</template>
</control-switch>
</div>

View File

@ -8,23 +8,23 @@
<div class="column">
<div
class="is-size-7 is-uppercase"
v-text="$t('page.artists.filter')"
v-text="$t('page.artists.filter.title')"
/>
<control-switch v-model="uiStore.hide_singles">
<template #label>
<span v-text="$t('page.artists.hide-singles')" />
<span v-text="$t('page.artists.filter.hide-singles')" />
</template>
<template #help>
<span v-text="$t('page.artists.hide-singles-help')" />
<span v-text="$t('page.artists.filter.hide-singles-help')" />
</template>
</control-switch>
<div v-if="spotify_enabled" class="field">
<control-switch v-model="uiStore.hide_spotify">
<template #label>
<span v-text="$t('page.artists.hide-spotify')" />
<span v-text="$t('page.artists.filter.hide-spotify')" />
</template>
<template #help>
<span v-text="$t('page.artists.hide-spotify-help')" />
<span v-text="$t('page.artists.filter.hide-spotify-help')" />
</template>
</control-switch>
</div>

View File

@ -9,11 +9,7 @@
:button="{ handler: showDetails, icon: 'dots-horizontal' }"
/>
<control-button
:button="{
handler: play,
icon: 'shuffle',
key: 'page.composer.shuffle'
}"
:button="{ handler: play, icon: 'shuffle', key: 'actions.shuffle' }"
/>
</template>
<template #content>
@ -76,17 +72,20 @@ export default {
return `composer is "${this.composer.name}" and media_kind is music`
},
heading() {
return {
title: this.composer.name,
subtitle: [
{ key: 'count.albums', count: this.composer.album_count },
{
handler: this.open_tracks,
key: 'count.tracks',
count: this.composer.track_count
}
]
if (this.composer.name) {
return {
title: this.composer.name,
subtitle: [
{ key: 'count.albums', count: this.composer.album_count },
{
handler: this.open_tracks,
key: 'count.tracks',
count: this.composer.track_count
}
]
}
}
return {}
}
},
methods: {

View File

@ -24,11 +24,7 @@
:button="{ handler: showDetails, icon: 'dots-horizontal' }"
/>
<control-button
:button="{
handler: play,
icon: 'shuffle',
key: 'page.composer.shuffle'
}"
:button="{ handler: play, icon: 'shuffle', key: 'actions.shuffle' }"
/>
</template>
<template #content>
@ -115,17 +111,20 @@ export default {
return `composer is "${this.composer.name}" and media_kind is music`
},
heading() {
return {
title: this.composer.name,
subtitle: [
{
handler: this.open_albums,
key: 'count.albums',
count: this.composer.album_count
},
{ key: 'count.tracks', count: composer.track_count }
]
if (this.composer.name) {
return {
title: this.composer.name,
subtitle: [
{
handler: this.open_albums,
key: 'count.albums',
count: this.composer.album_count
},
{ key: 'count.tracks', count: this.composer.track_count }
]
}
}
return {}
},
tracks() {
const { options } = this.groupings.find(

View File

@ -78,17 +78,20 @@ export default {
},
computed: {
heading() {
return {
title: this.genre.name,
subtitle: [
{ key: 'count.albums', count: this.genre.album_count },
{
handler: this.open_tracks,
key: 'count.tracks',
count: this.genre.track_count
}
]
if (this.genre.name) {
return {
title: this.genre.name,
subtitle: [
{ key: 'count.albums', count: this.genre.album_count },
{
handler: this.open_tracks,
key: 'count.tracks',
count: this.genre.track_count
}
]
}
}
return {}
}
},
methods: {

View File

@ -112,17 +112,20 @@ export default {
return `genre is "${this.genre.name}" and media_kind is ${this.media_kind}`
},
heading() {
return {
title: this.genre.name,
subtitle: [
{
handler: this.openGenre,
key: 'count.albums',
count: this.genre.album_count
},
{ key: 'count.tracks', count: this.genre.track_count }
]
if (this.genre.name) {
return {
title: this.genre.name,
subtitle: [
{
handler: this.openGenre,
key: 'count.albums',
count: this.genre.album_count
},
{ key: 'count.tracks', count: this.genre.track_count }
]
}
}
return {}
},
tracks() {
const { options } = this.groupings.find(

View File

@ -15,7 +15,7 @@
:to="{ name: 'music-spotify-new-releases' }"
class="button is-small is-rounded"
>
{{ $t('page.spotify.music.show-more') }}
{{ $t('actions.show-more') }}
</router-link>
</template>
</content-with-heading>
@ -33,7 +33,7 @@
:to="{ name: 'music-spotify-featured-playlists' }"
class="button is-small is-rounded"
>
{{ $t('page.spotify.music.show-more') }}
{{ $t('actions.show-more') }}
</router-link>
</template>
</content-with-heading>

View File

@ -202,8 +202,6 @@ export default {
this.edit_mode = !this.edit_mode
},
update_show_next_items() {
console.log(this.uiStore.show_only_next_items)
this.uiStore.show_only_next_items = !this.uiStore.show_only_next_items
}
}