mirror of
https://github.com/elk-zone/elk
synced 2024-11-23 22:56:09 +09:00
320ddc0e28
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com>
17 lines
474 B
Vue
17 lines
474 B
Vue
<script setup lang="ts">
|
|
import type { LocaleObject } from '@nuxtjs/i18n'
|
|
import type { ComputedRef } from 'vue'
|
|
|
|
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>
|