mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-22 01:15:25 +03:00
16 lines
474 B
Vue
16 lines
474 B
Vue
<script setup lang="ts">
|
|
import type { ComputedRef } from 'vue'
|
|
import type { LocaleObject } from '@nuxtjs/i18n'
|
|
|
|
const userSettings = useUserSettings()
|
|
|
|
const { locales } = useI18n() as { locales: ComputedRef<LocaleObject[]> }
|
|
</script>
|
|
|
|
<template>
|
|
<select v-model="userSettings.language">
|
|
<option v-for="item in locales" :key="item.code" :value="item.code" :selected="userSettings.language === item.code">
|
|
{{ item.name }}
|
|
</option>
|
|
</select>
|
|
</template>
|