fix: share text
This commit is contained in:
@@ -70,11 +70,12 @@
|
||||
"task_deleted": "Task deleted",
|
||||
"task_delete_error": "Could not delete task",
|
||||
"share_clipboard": "Link copied to clipboard",
|
||||
"share_error": "Could not share link"
|
||||
"share_error": "Could not share list"
|
||||
},
|
||||
"not_found": "Looks like there's nothing here...",
|
||||
"not_found_button": "Go back to familiar territory",
|
||||
"home": "A shareable task list with auto resetting items.<br/>Create your list below.",
|
||||
"home_button": "Let's go !",
|
||||
"share_button": "Share my list"
|
||||
"share_button": "Share my list",
|
||||
"share_text": "Check my list on Tout Doux!"
|
||||
}
|
||||
|
||||
@@ -70,11 +70,12 @@
|
||||
"task_deleted": "Tâche supprimée",
|
||||
"task_delete_error": "Impossible de supprimer la tâche",
|
||||
"share_clipboard": "Lien copié dans le presse-papier",
|
||||
"share_error": "Impossible de partager le lien"
|
||||
"share_error": "Impossible de partager la liste"
|
||||
},
|
||||
"not_found": "On dirait qu'il n'y a rien ici...",
|
||||
"not_found_button": "Retour en terrain connu",
|
||||
"home": "Une liste de tâches avec réinitialisation automatique des éléments.<br/>Créez ta liste ci-dessous.",
|
||||
"home_button": "C'est parti !",
|
||||
"share_button": "Partager ma liste"
|
||||
"share_button": "Partager ma liste",
|
||||
"share_text": "Regarde ma liste sur Tout Doux!"
|
||||
}
|
||||
|
||||
@@ -128,7 +128,11 @@ function onChangeSortReverse() {
|
||||
}
|
||||
|
||||
function onShare() {
|
||||
shareLink(`Tout Doux - ${list.value ?? ''}`, '', `${document.location.href.split('?')[0] ?? ''}?lang=${i18n.locale.value}`)
|
||||
shareLink(
|
||||
`Tout Doux - ${list.value ?? ''}`,
|
||||
i18n.t('share_text'),
|
||||
`${document.location.href.split('?')[0] ?? ''}?lang=${i18n.locale.value}`
|
||||
)
|
||||
.then((viaShare) => {
|
||||
if (!viaShare) {
|
||||
alertSuccess(i18n.t("alerts.share_clipboard"));
|
||||
|
||||
Reference in New Issue
Block a user