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
-1
View File
@@ -21,6 +21,5 @@
- [x] share link - [x] share link
- [ ] fill new list with "fill todo" item - [ ] fill new list with "fill todo" item
- [x] lang in cookies - [x] lang in cookies
- [ ] simple view
- [ ] Dockerfile - [ ] Dockerfile
- [ ] README - [ ] README
+3 -2
View File
@@ -70,11 +70,12 @@
"task_deleted": "Task deleted", "task_deleted": "Task deleted",
"task_delete_error": "Could not delete task", "task_delete_error": "Could not delete task",
"share_clipboard": "Link copied to clipboard", "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": "Looks like there's nothing here...",
"not_found_button": "Go back to familiar territory", "not_found_button": "Go back to familiar territory",
"home": "A shareable task list with auto resetting items.<br/>Create your list below.", "home": "A shareable task list with auto resetting items.<br/>Create your list below.",
"home_button": "Let's go !", "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_deleted": "Tâche supprimée",
"task_delete_error": "Impossible de supprimer la tâche", "task_delete_error": "Impossible de supprimer la tâche",
"share_clipboard": "Lien copié dans le presse-papier", "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": "On dirait qu'il n'y a rien ici...",
"not_found_button": "Retour en terrain connu", "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": "Une liste de tâches avec réinitialisation automatique des éléments.<br/>Créez ta liste ci-dessous.",
"home_button": "C'est parti !", "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() { 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) => { .then((viaShare) => {
if (!viaShare) { if (!viaShare) {
alertSuccess(i18n.t("alerts.share_clipboard")); alertSuccess(i18n.t("alerts.share_clipboard"));