refactored translations, preparing sending of document
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user