Fix the locale selector

This commit is contained in:
Rodolphe Bréard 2023-08-07 18:01:54 +02:00
parent aa21c694af
commit fa2b1a89d4

View file

@ -26,7 +26,7 @@ watch(locale, async (newLocale) => {
<div class="control"> <div class="control">
<div class="select is-fullwidth"> <div class="select is-fullwidth">
<select id="app-language" v-model="$i18n.locale"> <select id="app-language" v-model="$i18n.locale">
<option v-for="locale in $i18n.availableLocales" :key="`locale-${locale}`" :value="locale">{{ $t("locale_name", locale) }}</option> <option v-for="locale_id in $i18n.availableLocales" :key="`locale-${locale_id}`" :value="locale_id">{{ $t("locale_name", 1, { locale: locale_id}) }}</option>
</select> </select>
</div> </div>
</div> </div>