diff --git a/packages/hoppscotch-app/helpers/utils/composables.ts b/packages/hoppscotch-app/helpers/utils/composables.ts index d0a8aea2e..ad22e4126 100644 --- a/packages/hoppscotch-app/helpers/utils/composables.ts +++ b/packages/hoppscotch-app/helpers/utils/composables.ts @@ -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 }, diff --git a/packages/hoppscotch-app/pages/realtime.vue b/packages/hoppscotch-app/pages/realtime.vue index 5288ba75d..1c8b0ff01 100644 --- a/packages/hoppscotch-app/pages/realtime.vue +++ b/packages/hoppscotch-app/pages/realtime.vue @@ -13,9 +13,10 @@