Skip to content

useCurrentSilo

Get the current language object based on useRoot locale value. The value is a computed property, and can either be uHeadlessLanguage or undefined.

Usage

vue
<script setup lang="ts">
const language = await useCurrentLanguage()
const isoCode = language.value?.languageISOCode
</script>