Intial commit from techit@Techits-Mac-Pro

This commit is contained in:
Techit Thawiang
2025-09-21 19:59:04 +07:00
commit bee7386709
27 changed files with 9890 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<script setup>
const { t, locale, setLocale } = useI18n()
const currentLocale = ref(locale.value)
const toggleLocale = () => {
const newLocale = currentLocale.value === 'en' ? 'th' : 'en'
setLocale(newLocale).then(() => {
window.location.reload()
})
}
</script>
<template>
<ClientOnly>
<UTooltip :text="t('ui.language.tooltip')">
<UButton
@click="toggleLocale"
variant="outline"
color="neutral"
size="sm"
:label="t('ui.language.switch')"
/>
</UTooltip>
<template #fallback>
<USkeleton class="size-8" />
</template>
</ClientOnly>
</template>