More share translations

This commit is contained in:
Deluan 2023-01-22 11:43:03 -05:00
parent 12bb6c3847
commit 72a12e344e
2 changed files with 11 additions and 6 deletions

View File

@ -38,18 +38,21 @@ export const ShareDialog = ({ open, onClose, ids, resource, name }) => {
navigator.clipboard
.writeText(url)
.then(() => {
notify(`URL copied to clipboard: ${url}`, {
notify(translate('message.shareSuccess', { url }), {
type: 'info',
multiLine: true,
duration: 0,
})
})
.catch((err) => {
notify(`Error copying URL ${url} to clipboard: ${err.message}`, {
type: 'warning',
multiLine: true,
duration: 0,
})
notify(
translate('message.shareFailure', { url }) + ': ' + err.message,
{
type: 'warning',
multiLine: true,
duration: 0,
}
)
})
},
onFailure: (error) =>

View File

@ -371,6 +371,8 @@
"lastfmLink": "Read More...",
"shareOriginalFormat": "Share in original format",
"shareDialogTitle": "Share %{resource} '%{name}'",
"shareSuccess": "URL copied to clipboard: %{url}",
"shareFailure": "Error copying URL %{url} to clipboard",
"downloadDialogTitle": "Download %{resource} '%{name}' (%{size})",
"originalFormat": "Download in original format"
},