fix: i18n breaking on switching between realtime tabs
This commit is contained in:
@@ -143,6 +143,15 @@ export function useStreamSubscriber(): {
|
||||
}
|
||||
}
|
||||
|
||||
export function useI18nPathInfo() {
|
||||
const { localePath, getRouteBaseName } = useContext() as any
|
||||
|
||||
return {
|
||||
localePath: localePath as (x: string) => string,
|
||||
getRouteBaseName: getRouteBaseName as (x?: any) => string, // Should be a route
|
||||
}
|
||||
}
|
||||
|
||||
export function useI18n() {
|
||||
const {
|
||||
app: { i18n },
|
||||
|
||||
Reference in New Issue
Block a user