From afcdf0a7acc64a977db15fa701eaf79c8c5bbafb Mon Sep 17 00:00:00 2001 From: Core Date: Fri, 16 Sep 2022 16:39:51 +0100 Subject: [PATCH] localisation for mediaitem context menu --- .../views/components/mediaitem-square.ejs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/web-remote/views/components/mediaitem-square.ejs b/src/web-remote/views/components/mediaitem-square.ejs index 0d8d27da..ffaa7d75 100644 --- a/src/web-remote/views/components/mediaitem-square.ejs +++ b/src/web-remote/views/components/mediaitem-square.ejs @@ -320,7 +320,7 @@ { "icon": "./assets/feather/heart.svg", "id": "love", - "name": "Love", + "name": app.getLz("action.love"), "hidden": false, "disabled": true, "action": function() { @@ -331,7 +331,7 @@ "icon": "./assets/feather/heart.svg", "id": "unlove", "active": true, - "name": "Unlove", + "name": app.getLz("action.unlove"), "hidden": true, "action": function() { app.unlove(self.item) @@ -340,7 +340,7 @@ { "icon": "./assets/feather/thumbs-down.svg", "id": "dislike", - "name": "Dislike", + "name": app.getLz("action.dislike"), "hidden": false, "disabled": true, "action": function() { @@ -350,7 +350,7 @@ { "icon": "./assets/feather/thumbs-down.svg", "id": "undo_dislike", - "name": "Undo dislike", + "name": app.getLz("action.undoDislike"), "active": true, "hidden": true, "action": function() { @@ -362,7 +362,7 @@ { "icon": "./assets/feather/list.svg", "id": "addToPlaylist", - "name": "Add to Playlist...", + "name": app.getLz("action.addToPlaylist") + " ...", "action": function() { app.promptAddToPlaylist() } @@ -370,7 +370,7 @@ { "id": "addToLibrary", "icon": "./assets/feather/plus.svg", - "name": "Add to library", + "name": app.getLz("action.addToLibrary") + " ...", "hidden": false, "disabled": true, "action": function() { @@ -383,7 +383,7 @@ { "id": "removeFromLibrary", "icon": "./assets/feather/x-circle.svg", - "name": "Remove from library", + "name": app.getLz("action.removeFromLibrary"), "hidden": true, "action": async function() { console.log("remove"); @@ -394,7 +394,7 @@ } }, { - "name": "Play Next", + "name": app.getLz("action.playNext"), "icon": "./assets/arrow-bend-up.svg", "action": function() { 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", "action": function() { 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", - "name": "Share", + "name": app.getLz("action.share"), "action": function() { self.app.copyToClipboard(self.item.attributes.url) }