feat: add locale time ago formatting and the local name for the language in language dropdown

This commit is contained in:
tonya
2024-10-23 23:56:31 +00:00
parent a9616911f5
commit 1d5b62fdf3
3 changed files with 86 additions and 4 deletions

View File

@@ -381,7 +381,7 @@ import { useI18n } from "vue-i18n";
<select v-model="$i18n.locale" @change="(event) => {setLanguage((event.target as HTMLSelectElement).value )}"
class="select select-bordered">
<option v-for="lang in $i18n.availableLocales" :key="lang" :value="lang">
{{ $t(`languages.${lang}`) }}
{{ $t(`languages.${lang}`) }} ({{ $t(`languages.${lang}`, 1, { locale: lang }) }})
</option>
</select>
</div>