mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 17:43:59 +00:00
6d94158e95
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
18 lines
433 B
Vue
18 lines
433 B
Vue
<script setup>
|
|
const locales = useLocales()
|
|
const locale = useLocale()
|
|
const date = useLocaleDate(new Date('2016-10-26') /* NUXT_BIRTHDAY */)
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<h2>Nuxt birthday: {{ date }}</h2>
|
|
<label for="locale-chooser">Locale: </label>
|
|
<select id="locale-chooser" v-model="locale">
|
|
<option v-for="l of locales" :key="l" :value="l">
|
|
{{ l }}
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</template>
|