Skip to content

Commit

Permalink
Translate messages
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed May 26, 2020
1 parent 6db63e4 commit a42a166
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion resources/i18n/pt.json
Expand Up @@ -100,7 +100,8 @@
"songCount": "M煤sicas"
},
"actions": {
"selectPlaylist": "Selecione a playlist:"
"selectPlaylist": "Selecione a playlist:",
"addNewPlaylist": "Criar \"%{name}\""
}
}
},
Expand Down
4 changes: 3 additions & 1 deletion ui/src/dialogs/SelectPlaylistInput.js
Expand Up @@ -51,7 +51,9 @@ const SelectPlaylistInput = ({ onChange }) => {
if (params.inputValue !== '') {
filtered.push({
inputValue: params.inputValue,
name: `Add "${params.inputValue}"`,
name: translate('resources.playlist.actions.addNewPlaylist', {
name: params.inputValue,
}),
})
}

Expand Down
2 changes: 1 addition & 1 deletion ui/src/i18n/en.json
Expand Up @@ -70,7 +70,7 @@
},
"actions": {
"selectPlaylist": "Select a playlist:",
"addToPlaylist": "New playlist"
"addNewPlaylist": "Create \"%{name}\""
}
},
"user": {
Expand Down

0 comments on commit a42a166

Please sign in to comment.