fix: share text
TS Lint / Oxlint (push) Successful in 2m50s
TS Lint / TypeScript (push) Successful in 2m54s
TS Lint / ESLint (push) Successful in 3m8s

This commit is contained in:
2026-07-14 15:09:31 +02:00
parent 84630f2049
commit 4ab7b06b8f
4 changed files with 11 additions and 6 deletions
+3 -2
View File
@@ -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!"
}
+3 -2
View File
@@ -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!"
}
+5 -1
View File
@@ -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"));