implement i18n

This commit is contained in:
padreug 2025-02-02 21:30:29 +01:00
parent 5efef91d03
commit fd626f2c82

View file

@ -1,26 +1,29 @@
<script setup lang="ts"> <script setup lang="ts">
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
</script> </script>
<template> <template>
<div class="container mx-auto px-4 py-8"> <div class="container mx-auto px-4 py-8">
<div class="max-w-4xl mx-auto text-center space-y-8"> <div class="max-w-4xl mx-auto text-center space-y-8">
<h1 class="text-4xl font-bold tracking-tight sm:text-6xl"> <h1 class="text-4xl font-bold tracking-tight sm:text-6xl">
Find Bitcoin Lightning Payments {{ t('home.title') }}
</h1> </h1>
<p class="text-xl text-muted-foreground"> <p class="text-xl text-muted-foreground">
Discover local businesses, services, and venues that accept Bitcoin Lightning payments. {{ t('home.subtitle') }}
</p> </p>
<div class="flex flex-col sm:flex-row gap-4 justify-center"> <div class="flex flex-col sm:flex-row gap-4 justify-center">
<router-link to="/directory" <router-link to="/directory"
class="inline-flex items-center justify-center rounded-md bg-primary px-6 py-3 text-sm font-medium text-primary-foreground hover:bg-primary/90"> class="inline-flex items-center justify-center rounded-md bg-primary px-6 py-3 text-sm font-medium text-primary-foreground hover:bg-primary/90">
Browse Directory {{ t('home.browse') }}
</router-link> </router-link>
<router-link to="/faq" <router-link to="/faq"
class="inline-flex items-center justify-center rounded-md border border-input bg-background px-6 py-3 text-sm font-medium hover:bg-accent hover:text-accent-foreground"> class="inline-flex items-center justify-center rounded-md border border-input bg-background px-6 py-3 text-sm font-medium hover:bg-accent hover:text-accent-foreground">
Learn More {{ t('home.learnMore') }}
</router-link> </router-link>
</div> </div>
</div> </div>