feat(SPA): i18n internationzalization, english and french

This commit is contained in:
fsylvain committed 2026-10-03 01:53:49 +02:00
1 parent 7f1e8e572d
commit 721311a643
88 files changed
+4438 -1148

No files matched your search

+5 -3
View File
@@ -1,4 +1,6 @@
<script setup lang="ts">
import { t } from '@/i18n'
withDefaults(
defineProps<{
online: boolean
@@ -21,10 +23,10 @@ withDefaults(
:class="size === 'lg' ? undefined : 'px-2'"
:ui="{ leadingIcon: 'animate-spin' }"
>
{{ pending === 'publish' ? 'Publishing…' : 'Unpublishing…' }}
{{ pending === 'publish' ? t('Publishing…') : t('Unpublishing…') }}
</UBadge>
<UBadge v-else-if="online" color="neutral" variant="solid" icon="i-lucide-globe" :size="size">
Online
{{ t('Online') }}
</UBadge>
<UBadge
v-else
@@ -34,6 +36,6 @@ withDefaults(
:size="size"
:class="size === 'lg' ? undefined : 'px-2'"
>
Draft
{{ t('Draft') }}
</UBadge>
</template>