diff --git a/packages/hoppscotch-app/helpers/utils/composables.ts b/packages/hoppscotch-app/helpers/utils/composables.ts index d2aed799d..1bd14c7ba 100644 --- a/packages/hoppscotch-app/helpers/utils/composables.ts +++ b/packages/hoppscotch-app/helpers/utils/composables.ts @@ -5,6 +5,7 @@ import { readonly, Ref, ref, + useContext, watch, wrapProperty, } from "@nuxtjs/composition-api" @@ -132,3 +133,10 @@ export function useStreamSubscriber() { subscribeToStream: runAndSubscribe, } } + +export function useI18n() { + const { + app: { i18n }, + } = useContext() + return i18n.t.bind(i18n) +}