Add caddy and clean up build
This commit is contained in:
+8
-4
@@ -1,13 +1,17 @@
|
||||
|
||||
<template>
|
||||
<LanguageSwitcher />
|
||||
{{ t('app.hello') }}
|
||||
<RouterView />
|
||||
<p>
|
||||
{{ t('app.hello') }}
|
||||
</p>
|
||||
|
||||
<Suspense>
|
||||
<RouterView />
|
||||
</Suspense>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import LanguageSwitcher from '@/components/LanguageSwitcher.vue'
|
||||
|
||||
const { t } = useI18n()
|
||||
const { t } = useI18n();
|
||||
</script>
|
||||
+1
-1
@@ -13,7 +13,7 @@ const loadedLocales = new Set()
|
||||
|
||||
async function loadLocaleMessages(locale) {
|
||||
if (!loadedLocales.has(locale)) {
|
||||
const messages = await import(`../locales/${locale}.json`)
|
||||
const messages = await import(`./locales/${locale}.json`)
|
||||
i18n.global.setLocaleMessage(locale, messages.default)
|
||||
loadedLocales.add(locale)
|
||||
}
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
<template>
|
||||
{{ t('app.world') }}
|
||||
<p>{{ t('app.world') }}</p>
|
||||
<p v-for="value in j">
|
||||
{{ value }}
|
||||
</p>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const { t } = useI18n()
|
||||
const { t } = useI18n();
|
||||
|
||||
const res = await fetch("/php/notifications.php")
|
||||
const j = await res.json();
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user