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

@@ -16,7 +16,7 @@
});
if (resp.ok){
html = await resp.text();
if (!html) html = t('search.nothing_found');
if (!html) html = t('nothing_found');
}
}
@@ -29,23 +29,23 @@
</script>
<fieldset class="search">
<legend>{t('search.search')}</legend>
<legend>{t('search')}</legend>
<form onsubmit={doSearch}>
<label>
{t('search.key')}
{t('key')}
<input type="text" bind:value={key} />
</label>
<label>
<input type="checkbox" bind:checked={fulltext} />
{t('search.fulltext')}
{t('fulltext')}
</label>
<button type="submit">{t('search.go')}</button>
<button type="submit">{t('go')}</button>
</form>
</fieldset>
{#if html}
<fieldset>
<legend>
{t('search.results')}
{t('results')}
</legend>
{@html html}
</fieldset>