✨ add german translation
This commit is contained in:
15 files changed
+3282
-4101
No files matched your search
+10
-9
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
const { t } = useI18n();
|
||||
const { name, setName } = useIdentity();
|
||||
const { pots: visitedPots } = useVisitedPots();
|
||||
|
||||
@@ -24,7 +25,7 @@ async function createPot() {
|
||||
});
|
||||
await navigateTo(`/p/${pot.slug}/setup`);
|
||||
} catch {
|
||||
error.value = 'Could not create the Pot. Please try again.';
|
||||
error.value = t('home.createError');
|
||||
} finally {
|
||||
creating.value = false;
|
||||
}
|
||||
@@ -36,16 +37,16 @@ async function createPot() {
|
||||
<div class="space-y-1 text-center">
|
||||
<div class="text-4xl">🍯</div>
|
||||
<h1 class="text-2xl font-bold text-stone-900 dark:text-stone-100">
|
||||
Splitt the Bill
|
||||
{{ t('home.title') }}
|
||||
</h1>
|
||||
<p class="text-sm text-stone-500 dark:text-stone-400">
|
||||
Track shared costs with friends, the easy way.
|
||||
{{ t('home.subtitle') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<section v-if="visitedPots.length" class="space-y-2">
|
||||
<h2 class="text-sm font-semibold text-stone-500 dark:text-stone-400">
|
||||
Your Pots
|
||||
{{ t('home.yourPots') }}
|
||||
</h2>
|
||||
<ul class="space-y-2">
|
||||
<li v-for="pot in visitedPots" :key="pot.slug">
|
||||
@@ -73,14 +74,14 @@ async function createPot() {
|
||||
@submit.prevent="createPot"
|
||||
>
|
||||
<p class="text-sm text-stone-600 dark:text-stone-400">
|
||||
Hi {{ name }}! Create a new Pot to start splitting costs.
|
||||
{{ t('home.greeting', { name }) }}
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<label
|
||||
for="pot-name"
|
||||
class="block text-sm font-medium text-stone-700 dark:text-stone-300"
|
||||
>Pot name</label
|
||||
>{{ t('home.potNameLabel') }}</label
|
||||
>
|
||||
<input
|
||||
id="pot-name"
|
||||
@@ -88,7 +89,7 @@ async function createPot() {
|
||||
type="text"
|
||||
required
|
||||
class="mt-1 block w-full rounded-xl border border-stone-300 bg-white px-3 py-2 text-base text-stone-900 shadow-sm placeholder:text-stone-400 focus:border-orange-400 focus:outline-none focus:ring-2 focus:ring-orange-200 dark:border-stone-700 dark:bg-stone-950 dark:text-stone-100 dark:placeholder:text-stone-500 dark:focus:ring-orange-900"
|
||||
placeholder="Weekend in Lisbon"
|
||||
:placeholder="t('home.potNamePlaceholder')"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -96,7 +97,7 @@ async function createPot() {
|
||||
<label
|
||||
for="currency"
|
||||
class="block text-sm font-medium text-stone-700 dark:text-stone-300"
|
||||
>Currency</label
|
||||
>{{ t('home.currencyLabel') }}</label
|
||||
>
|
||||
<select
|
||||
id="currency"
|
||||
@@ -118,7 +119,7 @@ async function createPot() {
|
||||
:disabled="creating"
|
||||
class="w-full rounded-xl bg-orange-500 px-4 py-2 font-medium text-white shadow-sm transition-colors hover:bg-orange-600 active:bg-orange-600 disabled:opacity-50"
|
||||
>
|
||||
{{ creating ? 'Creating…' : 'Create Pot' }}
|
||||
{{ creating ? t('home.creating') : t('home.createPot') }}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user