mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-09 09:41:37 +00:00
feat: add school select translation
This commit is contained in:
parent
a87358a3b3
commit
ece2d12555
3 changed files with 22 additions and 2 deletions
|
|
@ -1,4 +1,6 @@
|
|||
<script lang="ts">
|
||||
import LL from '$i18n/i18n-svelte';
|
||||
|
||||
import type { School } from '$lib/stores/candidate';
|
||||
// TODO
|
||||
// import AutoComplete from 'simple-svelte-autocomplete';
|
||||
|
|
@ -22,14 +24,14 @@ $: selectedSchool.name = schoolName;
|
|||
<div class="flex flex-row">
|
||||
<div>
|
||||
<span>
|
||||
Selected school: {selectedSchool.name}
|
||||
{$LL.input.selectedSchool()}: {selectedSchool.name}
|
||||
</span>
|
||||
<!-- TODO -->
|
||||
<!-- <AutoComplete items={schools} bind:selectedItem={schoolName} /> -->
|
||||
<input type="text" bind:value={schoolName} />
|
||||
</div>
|
||||
<div class="flex">
|
||||
<span>Obor: </span>
|
||||
<span>{$LL.input.fieldOfStudy()}: </span>
|
||||
<input type="text" bind:value={selectedSchool.field} />
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -154,6 +154,8 @@ const cs: BaseTranslation = {
|
|||
password: 'Heslo',
|
||||
submit: 'Odeslat',
|
||||
continue: 'Pokračovat',
|
||||
fieldOfStudy: 'Obor',
|
||||
selectedSchool: 'Vybraná škola',
|
||||
parent: {
|
||||
nameSurname: 'Jméno a příjmení zákonného zástupce',
|
||||
email: 'E-mail zákonného zástupce',
|
||||
|
|
|
|||
|
|
@ -397,6 +397,14 @@ type RootTranslation = {
|
|||
* Pokračovat
|
||||
*/
|
||||
'continue': string
|
||||
/**
|
||||
* Obor
|
||||
*/
|
||||
fieldOfStudy: string
|
||||
/**
|
||||
* Vybraná škola
|
||||
*/
|
||||
selectedSchool: string
|
||||
parent: {
|
||||
/**
|
||||
* Jméno a příjmení zákonného zástupce
|
||||
|
|
@ -792,6 +800,14 @@ export type TranslationFunctions = {
|
|||
* Pokračovat
|
||||
*/
|
||||
'continue': () => LocalizedString
|
||||
/**
|
||||
* Obor
|
||||
*/
|
||||
fieldOfStudy: () => LocalizedString
|
||||
/**
|
||||
* Vybraná škola
|
||||
*/
|
||||
selectedSchool: () => LocalizedString
|
||||
parent: {
|
||||
/**
|
||||
* Jméno a příjmení zákonného zástupce
|
||||
|
|
|
|||
Loading…
Reference in a new issue