feat: use module

This commit is contained in:
Anthony Fu 2022-11-28 18:24:05 +08:00
parent 654010b3aa
commit c2f3526e88
7 changed files with 251 additions and 57 deletions

View file

@ -1,10 +1,10 @@
<script lang="ts" setup>
import { useI18n } from 'vue-i18n'
import { STORAGE_KEY_LANG } from '~/constants'
const { locale } = useI18n()
useLocalStorage(STORAGE_KEY_LANG, locale)
// TODO: read from $i18n https://i18n.nuxtjs.org/lang-switcher
const languageList = [
{
value: 'en-US',