[web] Simplify translations

This commit is contained in:
Alain Nussbaumer
2025-03-05 21:31:48 +01:00
parent 296dbe7a78
commit eecc915a6a
32 changed files with 233 additions and 550 deletions

View File

@@ -38,13 +38,9 @@ export default {
value: { required: true, type: [String, Number] }
},
emits: ['update:value'],
data() {
return {
active: false
}
return { active: false }
},
computed: {
option: {
get() {
@@ -52,7 +48,6 @@ export default {
}
}
},
methods: {
deactivate() {
this.active = false

View File

@@ -40,9 +40,9 @@ export default {
return [{ key: 'dialog.add.rss.processing', icon: 'web' }]
}
return [
{ key: 'dialog.add.rss.cancel', handler: this.cancel, icon: 'cancel' },
{ key: 'actions.cancel', handler: this.cancel, icon: 'cancel' },
{
key: 'dialog.add.rss.add',
key: 'actions.add',
disabled: this.disabled,
handler: this.add,
icon: 'playlist-plus'

View File

@@ -41,19 +41,15 @@ export default {
return [{ key: 'dialog.add.stream.processing', icon: 'web' }]
}
return [
{ key: 'actions.cancel', handler: this.cancel, icon: 'cancel' },
{
key: 'dialog.add.stream.cancel',
handler: this.cancel,
icon: 'cancel'
},
{
key: 'dialog.add.stream.add',
key: 'actions.add',
disabled: this.disabled,
handler: this.add,
icon: 'playlist-plus'
},
{
key: 'dialog.add.stream.play',
key: 'actions.play',
disabled: this.disabled,
handler: this.play,
icon: 'play'

View File

@@ -25,13 +25,11 @@ export default {
if (this.media_kind_resolved === 'podcast') {
if (this.item.data_kind === 'url') {
return [
{ key: 'dialog.album.mark-as-played', handler: this.mark_played },
{ key: 'dialog.album.remove-podcast', handler: this.remove_podcast }
{ key: 'actions.mark-as-played', handler: this.mark_played },
{ key: 'actions.remove-podcast', handler: this.remove_podcast }
]
}
return [
{ key: 'dialog.album.mark-as-played', handler: this.mark_played }
]
return [{ key: 'actions.mark-as-played', handler: this.mark_played }]
}
return []
},

View File

@@ -34,17 +34,13 @@ export default {
computed: {
actions() {
return [
{ key: 'actions.add', handler: this.queue_add, icon: 'playlist-plus' },
{
key: 'dialog.playable.add',
handler: this.queue_add,
icon: 'playlist-plus'
},
{
key: 'dialog.playable.add-next',
key: 'actions.add-next',
handler: this.queue_add_next,
icon: 'playlist-play'
},
{ key: 'dialog.playable.play', handler: this.play, icon: 'play' }
{ key: 'actions.play', handler: this.play, icon: 'play' }
]
}
},

View File

@@ -50,13 +50,9 @@ export default {
return [{ key: 'dialog.playlist.save.saving', icon: 'web' }]
}
return [
{ key: 'actions.cancel', handler: this.cancel, icon: 'cancel' },
{
key: 'dialog.playlist.save.cancel',
handler: this.cancel,
icon: 'cancel'
},
{
key: 'dialog.playlist.save.save',
key: 'actions.save',
disabled: this.disabled,
handler: this.save,
icon: 'download'

View File

@@ -29,16 +29,8 @@ export default {
computed: {
actions() {
return [
{
key: this.$t('dialog.queue-item.remove'),
handler: this.remove,
icon: 'delete'
},
{
key: this.$t('dialog.queue-item.play'),
handler: this.play,
icon: 'play'
}
{ key: 'actions.remove', handler: this.remove, icon: 'delete' },
{ key: 'actions.play', handler: this.play, icon: 'play' }
]
},
playable() {

View File

@@ -46,16 +46,8 @@ export default {
computed: {
actions() {
return [
{
key: 'dialog.remote-pairing.cancel',
handler: this.cancel,
icon: 'cancel'
},
{
key: 'dialog.remote-pairing.pair',
handler: this.pair,
icon: 'cellphone'
}
{ key: 'actions.cancel', handler: this.cancel, icon: 'cancel' },
{ key: 'actions.pair', handler: this.pair, icon: 'cellphone' }
]
},
pairing() {

View File

@@ -22,8 +22,8 @@ export default {
return []
}
return this.item.play_count > 0
? [{ key: 'dialog.track.mark-as-new', handler: this.mark_new }]
: [{ key: 'dialog.track.mark-as-played', handler: this.mark_played }]
? [{ key: 'actions.mark-as-new', handler: this.mark_new }]
: [{ key: 'actions.mark-as-played', handler: this.mark_played }]
},
playable() {
return {

View File

@@ -67,15 +67,11 @@ export default {
computed: {
actions() {
const actions = [
{
key: 'dialog.update.cancel',
handler: this.cancel,
icon: 'cancel'
}
{ key: 'actions.cancel', handler: this.cancel, icon: 'cancel' }
]
if (!this.libraryStore.updating) {
actions.push({
key: 'dialog.update.rescan',
key: 'actions.rescan',
handler: this.analyse,
icon: 'check'
})