提交正式官网
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { localeFromPath } from '~/utils/locale-path'
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
const route = useRoute()
|
||||
const { setLocale } = useSiteLocale()
|
||||
setLocale(localeFromPath(route.path))
|
||||
})
|
||||
Reference in New Issue
Block a user