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