8 lines
204 B
TypeScript
8 lines
204 B
TypeScript
import { localeFromPath } from '~/utils/locale-path'
|
|
|
|
export default defineNuxtPlugin(() => {
|
|
const route = useRoute()
|
|
const { setLocale } = useSiteLocale()
|
|
setLocale(localeFromPath(route.path))
|
|
})
|