feat? initial translation

This commit is contained in:
EETagent 2023-01-20 14:14:19 +01:00
parent 14c334bb55
commit cbb1a9a29e
3 changed files with 50 additions and 9 deletions

View file

@ -1,4 +1,5 @@
<script lang="ts">
import LL from '$i18n/i18n-svelte';
import { goto } from '$app/navigation';
import Submit from '$lib/components/button/Submit.svelte';
@ -19,10 +20,9 @@
<SplitLayout>
<div class="form">
<SchoolBadge />
<h1 class="text-sspsBlue mt-8 text-4xl font-semibold">Přihlášení</h1>
<h1 class="text-sspsBlue mt-8 text-4xl font-semibold">{$LL.candidate.auth.login.title()}</h1>
<p class="text-sspsGray my-8 text-center font-light">
Evidenční číslo je jedinečné číslo přidělené uchazeči, které slouží k jeho identifikaci<br /> a
přihlášení se do systému.
{$LL.candidate.auth.login.description()}
</p>
<div class="w-4/5 lg:w-3/5">
<TextField bind:value={applicationValue} placeholder="Ev. číslo" type="number" />

View file

@ -1,6 +1,15 @@
import type { BaseTranslation } from '../i18n-types.js'
import type { BaseTranslation } from '../i18n-types.js';
const cs: BaseTranslation = {
}
candidate: {
auth: {
login: {
title: 'Přihlášení',
description:
'Evidenční číslo je jedinečné číslo přidělené uchazeči, které slouží k jeho identifikaci\napřihlášení se do systému.'
}
}
}
};
export default cs
export default cs;

View file

@ -1,6 +1,6 @@
// This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten.
/* eslint-disable */
import type { BaseTranslation as BaseTranslationType } from 'typesafe-i18n'
import type { BaseTranslation as BaseTranslationType, LocalizedString } from 'typesafe-i18n'
export type BaseTranslation = BaseTranslationType
export type BaseLocale = 'cs'
@ -12,8 +12,40 @@ export type Translation = RootTranslation
export type Translations = RootTranslation
type RootTranslation = {}
type RootTranslation = {
candidate: {
auth: {
login: {
/**
* Přihlášení
*/
title: string
/**
* Evidenční číslo je jedinečné číslo přidělené uchazeči, které slouží k jeho identifikaci
apřihlášení se do systému.
*/
description: string
}
}
}
}
export type TranslationFunctions = {}
export type TranslationFunctions = {
candidate: {
auth: {
login: {
/**
* Přihlášení
*/
title: () => LocalizedString
/**
* Evidenční číslo je jedinečné číslo přidělené uchazeči, které slouží k jeho identifikaci
apřihlášení se do systému.
*/
description: () => LocalizedString
}
}
}
}
export type Formatters = {}