mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-02 10:27:15 +00:00
5 lines
162 B
TypeScript
5 lines
162 B
TypeScript
export default defineNuxtPlugin((nuxtApp) => {
|
|
const locale = useLocale()
|
|
locale.value = nuxtApp.ssrContext?.req.headers['accept-language']?.split(',')[0]
|
|
})
|