replace static strings with translator calls
This commit is contained in:
parent
b329b67a3e
commit
1f9aad755c
5 changed files with 38 additions and 27 deletions
|
@ -1,19 +1,21 @@
|
|||
import { A } from "@solidjs/router";
|
||||
import LandingImage from '../../assets/landing.svg'
|
||||
import css from "./welcome.module.css";
|
||||
import { useI18n } from "~/features/i18n";
|
||||
|
||||
export default function Welcome() {
|
||||
const { t } = useI18n();
|
||||
|
||||
return <main class={css.main}>
|
||||
<LandingImage />
|
||||
|
||||
<h1>Hi, welcome!</h1>
|
||||
<b>Lets get started</b>
|
||||
<h1>{t('page.welcome.title')}</h1>
|
||||
<b>{t('page.welcome.subtitle')}</b>
|
||||
|
||||
<ul>
|
||||
<li><A href="/edit">Start editing</A></li>
|
||||
{/* <li><A href="/experimental">Try new features</A></li> */}
|
||||
<li><A href="/instructions">Read the instructions</A></li>
|
||||
<li><A href="/about">About this app</A></li>
|
||||
<li><A href="/edit">{t('page.welcome.edit')}</A></li>
|
||||
<li><A href="/instructions">{t('page.welcome.instructions')}</A></li>
|
||||
<li><A href="/about">{t('page.welcome.about')}</A></li>
|
||||
</ul>
|
||||
</main>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue