feat: memorize language
This commit is contained in:
parent
5e0119aa84
commit
30eb95f1bd
4 changed files with 6 additions and 2 deletions
|
@ -1,7 +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)
|
||||
|
||||
const languageList = [
|
||||
{
|
||||
value: 'en-US',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue