refactored translations, preparing sending of document

This commit is contained in:
2025-07-17 13:03:49 +02:00
parent 7616aa9581
commit dc8de9707a
38 changed files with 430 additions and 390 deletions

View File

@@ -4,7 +4,7 @@
import { useTinyRouter } from 'svelte-tiny-router';
let mail = "";
let caption = t('user.send_mail');
let caption = t('send_mail');
let error = null;
const router = useTinyRouter();
@@ -16,7 +16,7 @@
body : mail
});
if (resp.ok) {
caption = t('user.data_sent');
caption = t('data_sent');
} else {
caption = await resp.text();
}
@@ -58,10 +58,10 @@
<form onsubmit={submit}>
<fieldset>
<legend>{t('user.reset_pw')}</legend>
<legend>{t('reset_pw')}</legend>
<label>
<input type="email" bind:value={mail}/>
{t('user.enter_email')}
{t('enter_email')}
</label>
<button type="submit">{caption}</button>
{#if error}