Update translations for playlists

This commit is contained in:
Deluan 2020-05-17 10:23:46 -04:00
parent d1a0ffaaee
commit 1aef21a4a9
3 changed files with 22 additions and 4 deletions

View File

@ -21,8 +21,9 @@
"discSubtitle": "Sub-título do disco" "discSubtitle": "Sub-título do disco"
}, },
"actions": { "actions": {
"addToQueue": "Tocar por último", "addToQueue": "Adicionar à fila",
"playNow": "Tocar agora" "playNow": "Tocar agora",
"addToPlaylist": "Adicionar à playlist"
} }
}, },
"album": { "album": {
@ -42,7 +43,7 @@
"actions": { "actions": {
"playAll": "Tocar", "playAll": "Tocar",
"playNext": "Tocar em seguida", "playNext": "Tocar em seguida",
"addToQueue": "Tocar no fim", "addToQueue": "Adicionar à fila",
"shuffle": "Aleatório" "shuffle": "Aleatório"
} }
}, },
@ -85,6 +86,21 @@
"defaultBitRate": "Bitrate padrão", "defaultBitRate": "Bitrate padrão",
"command": "Comando" "command": "Comando"
} }
},
"playlist": {
"name": "Playlist |||| Playlists",
"fields": {
"name": "Nome",
"duration": "Duração",
"owner": "Dono",
"public": "Pública",
"updatedAt": "Últ. Atualização",
"createdAt": "Data de Criação ",
"songCount": "Músicas"
},
"actions": {
"selectPlaylist": "Selecione a playlist:"
}
} }
}, },
"ra": { "ra": {

View File

@ -60,6 +60,7 @@
"fields": { "fields": {
"name": "Name", "name": "Name",
"duration": "Duration", "duration": "Duration",
"songCount": "Songs",
"owner": "Owner", "owner": "Owner",
"public": "Public", "public": "Public",
"updatedAt":"Updated at", "updatedAt":"Updated at",

View File

@ -27,8 +27,9 @@ const removeEmpty = (obj) => {
const prepareLanguage = (lang) => { const prepareLanguage = (lang) => {
removeEmpty(lang) removeEmpty(lang)
// Make "albumSongs" resource use the same translations as "song" // Make "albumSong" and "playlistTrack" resource use the same translations as "song"
lang.resources.albumSong = lang.resources.song lang.resources.albumSong = lang.resources.song
lang.resources.playlistTrack = lang.resources.song
// ra.boolean.null should always be empty // ra.boolean.null should always be empty
lang.ra.boolean.null = '' lang.ra.boolean.null = ''
// Fallback to english translations // Fallback to english translations