Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
refactor: add i18n composable
Andrew Bastincad8f3e85699
diff --git a/packages/hoppscotch-app/helpers/utils/composables.ts b/packages/hoppscotch-app/helpers/utils/composables.tsindex 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)+}