feat: i18n

This commit is contained in:
2023-07-26 21:51:17 +02:00
parent 06c1121983
commit 6b09cbfbec
10 changed files with 276 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />

4
src/hooks.server.ts Normal file
View File

@@ -0,0 +1,4 @@
/* This file was created by inlang.
It is needed in order to circumvent a current limitation of SvelteKit. See https://github.com/inlang/inlang/issues/647
You can remove this comment and modify the file as you like. We just need to make sure it exists.
Please do not delete it (inlang will recreate it if needed). */

View File

@@ -10,6 +10,7 @@
import {browser} from "$app/environment"
import {userPreferences} from "$lib/preferences"
import Theme from "./Theme.svelte"
import {i} from "@inlang/sdk-js"
const training = [
{slug: "cpm", title: "CPM - Characters Per Minute", icon: "music_note"},
@@ -28,7 +29,7 @@
</script>
<nav>
<a href="/" class="title">amaCC1ng</a>
<a href="/" class="title">{i("title")}</a>
<div class="steps">
{#each training as { slug, title, icon }}

View File

@@ -0,0 +1,4 @@
/* This file was created by inlang.
It is needed in order to circumvent a current limitation of SvelteKit. See https://github.com/inlang/inlang/issues/647
You can remove this comment and modify the file as you like. We just need to make sure it exists.
Please do not delete it (inlang will recreate it if needed). */