✨ add german translation
This commit is contained in:
15 files changed
+3282
-4101
No files matched your search
+19
@@ -1,9 +1,28 @@
|
||||
<script setup lang="ts">
|
||||
const { locale, locales, setLocale } = useI18n();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="min-h-screen bg-orange-50/40 text-stone-900 dark:bg-stone-950 dark:text-stone-100"
|
||||
>
|
||||
<NuxtRouteAnnouncer />
|
||||
<main class="mx-auto max-w-md px-4 py-8">
|
||||
<div class="mb-4 flex justify-end">
|
||||
<select
|
||||
:value="locale"
|
||||
class="rounded-lg border border-stone-300 bg-white px-2 py-1 text-xs font-medium text-stone-600 shadow-sm dark:border-stone-700 dark:bg-stone-900 dark:text-stone-300"
|
||||
@change="
|
||||
setLocale(
|
||||
($event.target as HTMLSelectElement).value as typeof locale,
|
||||
)
|
||||
"
|
||||
>
|
||||
<option v-for="loc in locales" :key="loc.code" :value="loc.code">
|
||||
{{ loc.name }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<NuxtPage />
|
||||
</main>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user