From 0a61ec2bfe79b1195b30bad5aa76140560fed65e Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 7 Dec 2023 15:17:41 +0530 Subject: [PATCH] fix: useI18n type breaking --- packages/hoppscotch-common/src/composables/i18n.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-common/src/composables/i18n.ts b/packages/hoppscotch-common/src/composables/i18n.ts index 114f53602..c330264d1 100644 --- a/packages/hoppscotch-common/src/composables/i18n.ts +++ b/packages/hoppscotch-common/src/composables/i18n.ts @@ -1,6 +1,7 @@ -import { flow } from "fp-ts/function" import { useI18n as _useI18n } from "vue-i18n" -export const useI18n = flow(_useI18n, (x) => x.t) +export function useI18n() { + return _useI18n().t +} export const useFullI18n = _useI18n