localisation for mediaitem context menu

This commit is contained in:
Core 2022-09-16 16:39:51 +01:00
parent 8c4bc623f0
commit afcdf0a7ac
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0

View file

@ -320,7 +320,7 @@
{ {
"icon": "./assets/feather/heart.svg", "icon": "./assets/feather/heart.svg",
"id": "love", "id": "love",
"name": "Love", "name": app.getLz("action.love"),
"hidden": false, "hidden": false,
"disabled": true, "disabled": true,
"action": function() { "action": function() {
@ -331,7 +331,7 @@
"icon": "./assets/feather/heart.svg", "icon": "./assets/feather/heart.svg",
"id": "unlove", "id": "unlove",
"active": true, "active": true,
"name": "Unlove", "name": app.getLz("action.unlove"),
"hidden": true, "hidden": true,
"action": function() { "action": function() {
app.unlove(self.item) app.unlove(self.item)
@ -340,7 +340,7 @@
{ {
"icon": "./assets/feather/thumbs-down.svg", "icon": "./assets/feather/thumbs-down.svg",
"id": "dislike", "id": "dislike",
"name": "Dislike", "name": app.getLz("action.dislike"),
"hidden": false, "hidden": false,
"disabled": true, "disabled": true,
"action": function() { "action": function() {
@ -350,7 +350,7 @@
{ {
"icon": "./assets/feather/thumbs-down.svg", "icon": "./assets/feather/thumbs-down.svg",
"id": "undo_dislike", "id": "undo_dislike",
"name": "Undo dislike", "name": app.getLz("action.undoDislike"),
"active": true, "active": true,
"hidden": true, "hidden": true,
"action": function() { "action": function() {
@ -362,7 +362,7 @@
{ {
"icon": "./assets/feather/list.svg", "icon": "./assets/feather/list.svg",
"id": "addToPlaylist", "id": "addToPlaylist",
"name": "Add to Playlist...", "name": app.getLz("action.addToPlaylist") + " ...",
"action": function() { "action": function() {
app.promptAddToPlaylist() app.promptAddToPlaylist()
} }
@ -370,7 +370,7 @@
{ {
"id": "addToLibrary", "id": "addToLibrary",
"icon": "./assets/feather/plus.svg", "icon": "./assets/feather/plus.svg",
"name": "Add to library", "name": app.getLz("action.addToLibrary") + " ...",
"hidden": false, "hidden": false,
"disabled": true, "disabled": true,
"action": function() { "action": function() {
@ -383,7 +383,7 @@
{ {
"id": "removeFromLibrary", "id": "removeFromLibrary",
"icon": "./assets/feather/x-circle.svg", "icon": "./assets/feather/x-circle.svg",
"name": "Remove from library", "name": app.getLz("action.removeFromLibrary"),
"hidden": true, "hidden": true,
"action": async function() { "action": async function() {
console.log("remove"); console.log("remove");
@ -394,7 +394,7 @@
} }
}, },
{ {
"name": "Play Next", "name": app.getLz("action.playNext"),
"icon": "./assets/arrow-bend-up.svg", "icon": "./assets/arrow-bend-up.svg",
"action": function() { "action": function() {
app.mk.playNext({ [self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id }) app.mk.playNext({ [self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id })
@ -403,7 +403,7 @@
} }
}, },
{ {
"name": "Play Later", "name": app.getLz("action.playLater"),
"icon": "./assets/arrow-bend-down.svg", "icon": "./assets/arrow-bend-down.svg",
"action": function() { "action": function() {
app.mk.playLater({ [self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id }) app.mk.playLater({ [self.item.attributes.playParams.kind ?? self.item.type]: self.item.attributes.playParams.id ?? self.item.id })
@ -413,7 +413,7 @@
}, },
{ {
"icon": "./assets/feather/share.svg", "icon": "./assets/feather/share.svg",
"name": "Share", "name": app.getLz("action.share"),
"action": function() { "action": function() {
self.app.copyToClipboard(self.item.attributes.url) self.app.copyToClipboard(self.item.attributes.url)
} }