Enabled new i18n strings (playlist stuff)

This commit is contained in:
Onur Gümüş 2022-01-30 14:32:09 +03:00
parent b600b5528a
commit 5b273139c8

View file

@ -512,7 +512,7 @@ const app = new Vue({
}
}
this.modals.addToPlaylist = false
app.newPlaylist("New Playlist", pl_items)
app.newPlaylist(app.getLz('term.newPlaylist'), pl_items)
},
async addSelectedToPlaylist(playlist_id) {
let self = this
@ -910,13 +910,13 @@ const app = new Vue({
playlistHeaderContextMenu(event) {
let menu = {
items: [{
name: "New Playlist",
name: app.getLz('term.createNewPlaylist'),
action: () => {
this.newPlaylist()
}
},
{
name: "New Playlist Folder",
name: app.getLz('term.createNewPlaylistFolder'),
action: () => {
this.newPlaylistFolder()
}
@ -925,7 +925,7 @@ const app = new Vue({
}
this.showMenuPanel(menu, event)
},
async editPlaylistFolder(id, name = "New Playlist") {
async editPlaylistFolder(id, name = app.getLz('term.newPlaylist')) {
let self = this
this.mk.api.v3.music(
`/v1/me/library/playlist-folders/${id}`, {}, {
@ -940,7 +940,7 @@ const app = new Vue({
self.refreshPlaylists()
})
},
async editPlaylist(id, name = "New Playlist") {
async editPlaylist(id, name = app.getLz('term.newPlaylist')) {
let self = this
this.mk.api.v3.music(
`/v1/me/library/playlists/${id}`, {}, {
@ -958,7 +958,7 @@ const app = new Vue({
copyToClipboard(str) {
navigator.clipboard.writeText(str)
},
newPlaylist(name = "New Playlist", tracks = []) {
newPlaylist(name = app.getLz('term.newPlaylist'), tracks = []) {
let self = this
let request = {
name: name
@ -2119,7 +2119,7 @@ const app = new Vue({
this.getMadeForYou(attempt + 1)
}
},
newPlaylistFolder(name = "New Folder") {
newPlaylistFolder(name = app.getLz('term.newPlaylistFolder')) {
let self = this
this.mk.api.v3.music(
"/v1/me/library/playlist-folders/", {}, {