add i18n to many items

This commit is contained in:
vapormusic 2022-01-24 22:22:47 +07:00
parent a0c1d3ffcd
commit d873913481
27 changed files with 141 additions and 119 deletions

View file

@ -98,7 +98,7 @@
normal: {
items: [
{
"name": "Go to Artist",
"name": app.getLz('action.goToArtist'),
"icon": "./assets/feather/user.svg",
"action": function () {
app.searchAndNavigate(self.item, 'artist')
@ -107,7 +107,7 @@
},
{
"icon": "./assets/feather/radio.svg",
"name": "Start Radio",
"name": app.getLz('action.startRadio'),
"action": function () {
app.mk.setStationQueue({song: self.item.attributes.playParams.id ?? self.item.id}).then(() => {
app.mk.play()
@ -117,7 +117,7 @@
},
{
"icon": "./assets/feather/share.svg",
"name": "Share",
"name": app.getLz('action.share'),
"action": function () {
if (!self.item.attributes.url && self.item.relationships){
if (self.item.relationships.catalog){