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">
|
<script lang="ts">
|
||||||
|
import LL from '$i18n/i18n-svelte';
|
||||||
|
|
||||||
import type { School } from '$lib/stores/candidate';
|
import type { School } from '$lib/stores/candidate';
|
||||||
// TODO
|
// TODO
|
||||||
// import AutoComplete from 'simple-svelte-autocomplete';
|
// import AutoComplete from 'simple-svelte-autocomplete';
|
||||||
|
|
@ -22,14 +24,14 @@ $: selectedSchool.name = schoolName;
|
||||||
<div class="flex flex-row">
|
<div class="flex flex-row">
|
||||||
<div>
|
<div>
|
||||||
<span>
|
<span>
|
||||||
Selected school: {selectedSchool.name}
|
{$LL.input.selectedSchool()}: {selectedSchool.name}
|
||||||
</span>
|
</span>
|
||||||
<!-- TODO -->
|
<!-- TODO -->
|
||||||
<!-- <AutoComplete items={schools} bind:selectedItem={schoolName} /> -->
|
<!-- <AutoComplete items={schools} bind:selectedItem={schoolName} /> -->
|
||||||
<input type="text" bind:value={schoolName} />
|
<input type="text" bind:value={schoolName} />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<span>Obor: </span>
|
<span>{$LL.input.fieldOfStudy()}: </span>
|
||||||
<input type="text" bind:value={selectedSchool.field} />
|
<input type="text" bind:value={selectedSchool.field} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -154,6 +154,8 @@ const cs: BaseTranslation = {
|
||||||
password: 'Heslo',
|
password: 'Heslo',
|
||||||
submit: 'Odeslat',
|
submit: 'Odeslat',
|
||||||
continue: 'Pokračovat',
|
continue: 'Pokračovat',
|
||||||
|
fieldOfStudy: 'Obor',
|
||||||
|
selectedSchool: 'Vybraná škola',
|
||||||
parent: {
|
parent: {
|
||||||
nameSurname: 'Jméno a příjmení zákonného zástupce',
|
nameSurname: 'Jméno a příjmení zákonného zástupce',
|
||||||
email: 'E-mail zákonného zástupce',
|
email: 'E-mail zákonného zástupce',
|
||||||
|
|
|
||||||
|
|
@ -397,6 +397,14 @@ type RootTranslation = {
|
||||||
* Pokračovat
|
* Pokračovat
|
||||||
*/
|
*/
|
||||||
'continue': string
|
'continue': string
|
||||||
|
/**
|
||||||
|
* Obor
|
||||||
|
*/
|
||||||
|
fieldOfStudy: string
|
||||||
|
/**
|
||||||
|
* Vybraná škola
|
||||||
|
*/
|
||||||
|
selectedSchool: string
|
||||||
parent: {
|
parent: {
|
||||||
/**
|
/**
|
||||||
* Jméno a příjmení zákonného zástupce
|
* Jméno a příjmení zákonného zástupce
|
||||||
|
|
@ -792,6 +800,14 @@ export type TranslationFunctions = {
|
||||||
* Pokračovat
|
* Pokračovat
|
||||||
*/
|
*/
|
||||||
'continue': () => LocalizedString
|
'continue': () => LocalizedString
|
||||||
|
/**
|
||||||
|
* Obor
|
||||||
|
*/
|
||||||
|
fieldOfStudy: () => LocalizedString
|
||||||
|
/**
|
||||||
|
* Vybraná škola
|
||||||
|
*/
|
||||||
|
selectedSchool: () => LocalizedString
|
||||||
parent: {
|
parent: {
|
||||||
/**
|
/**
|
||||||
* Jméno a příjmení zákonného zástupce
|
* Jméno a příjmení zákonného zástupce
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue