fix: i18n breaking on switching between realtime tabs

This commit is contained in:
Andrew Bastin
2022-07-02 21:39:43 +05:30
parent cac3abd2ab
commit 1ab54b0ce7
2 changed files with 19 additions and 5 deletions

View File

@@ -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 },