✨ add german translation
This commit is contained in:
15 files changed
+3282
-4101
No files matched your search
+11
-10
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import type { PotView } from '~/types';
|
||||
|
||||
const { t } = useI18n();
|
||||
const route = useRoute();
|
||||
const slug = route.params.slug as string;
|
||||
const { name, setName } = useIdentity();
|
||||
@@ -53,15 +54,15 @@ async function copyLink() {
|
||||
|
||||
<template>
|
||||
<div v-if="error" class="space-y-3 text-center">
|
||||
<p class="text-rose-600 dark:text-rose-400">This Pot couldn't be found.</p>
|
||||
<p class="text-rose-600 dark:text-rose-400">{{ t('pot.notFound') }}</p>
|
||||
<NuxtLink to="/" class="font-medium text-orange-600 dark:text-orange-400">
|
||||
Go home
|
||||
{{ t('pot.goHome') }}
|
||||
</NuxtLink>
|
||||
</div>
|
||||
|
||||
<NameForm
|
||||
v-else-if="!name && isPotTab"
|
||||
title="What's your name?"
|
||||
:title="t('pot.whatIsYourName')"
|
||||
@submit="setName"
|
||||
/>
|
||||
|
||||
@@ -78,7 +79,7 @@ async function copyLink() {
|
||||
clip-rule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
All Pots
|
||||
{{ t('pot.allPots') }}
|
||||
</NuxtLink>
|
||||
|
||||
<div class="flex items-start justify-between gap-2">
|
||||
@@ -96,12 +97,12 @@ async function copyLink() {
|
||||
class="rounded-xl border border-stone-300 px-3 py-1.5 text-sm font-medium text-stone-700 transition-colors hover:border-orange-300 hover:text-orange-600 dark:border-stone-700 dark:text-stone-300 dark:hover:border-orange-700 dark:hover:text-orange-400"
|
||||
@click="copyLink"
|
||||
>
|
||||
{{ linkCopied ? 'Copied!' : 'Copy link' }}
|
||||
{{ linkCopied ? t('pot.linkCopied') : t('pot.copyLink') }}
|
||||
</button>
|
||||
<NuxtLink
|
||||
:to="`/p/${slug}/settings`"
|
||||
class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl border border-stone-300 text-stone-600 transition-colors hover:border-orange-300 hover:text-orange-600 dark:border-stone-700 dark:text-stone-300 dark:hover:border-orange-700 dark:hover:text-orange-400"
|
||||
aria-label="Pot settings"
|
||||
:aria-label="t('pot.settingsLabel')"
|
||||
>
|
||||
<svg class="h-4.5 w-4.5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path
|
||||
@@ -119,14 +120,14 @@ async function copyLink() {
|
||||
class="rounded-2xl border border-orange-200 bg-orange-50 p-4 text-sm dark:border-orange-900 dark:bg-orange-950/40"
|
||||
>
|
||||
<p class="mb-2 text-stone-700 dark:text-stone-300">
|
||||
You're not in this Pot's participant list yet.
|
||||
{{ t('pot.notInPot') }}
|
||||
</p>
|
||||
<button
|
||||
type="button"
|
||||
class="rounded-xl bg-orange-500 px-3 py-1.5 font-medium text-white shadow-sm transition-colors hover:bg-orange-600"
|
||||
@click="addMyself"
|
||||
>
|
||||
Add myself as {{ name }}
|
||||
{{ t('pot.addMyself', { name }) }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -142,7 +143,7 @@ async function copyLink() {
|
||||
: 'text-stone-500 hover:text-stone-700 dark:text-stone-400 dark:hover:text-stone-200'
|
||||
"
|
||||
>
|
||||
People & balances
|
||||
{{ t('pot.tabPeople') }}
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
:to="`/p/${slug}/expenses`"
|
||||
@@ -153,7 +154,7 @@ async function copyLink() {
|
||||
: 'text-stone-500 hover:text-stone-700 dark:text-stone-400 dark:hover:text-stone-200'
|
||||
"
|
||||
>
|
||||
Expenses
|
||||
{{ t('pot.tabExpenses') }}
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user