NuxtN
Nuxt16mo ago
Robin

Using i18n in composable

Hi, I'd like to create a global func that return current locale in uppercase and define it a type but seems like it only works in setup script. Is there a way to do it ? I don't wanna create it in every file if possible.
Was this page helpful?