diff --git a/packages/hoppscotch-common/src/modules/i18n.ts b/packages/hoppscotch-common/src/modules/i18n.ts index 9366b0be6..b5d171e88 100644 --- a/packages/hoppscotch-common/src/modules/i18n.ts +++ b/packages/hoppscotch-common/src/modules/i18n.ts @@ -115,6 +115,14 @@ export const changeAppLanguage = async (locale: string) => { setLocalConfig("locale", locale) } +/** + * Returns the i18n instance + */ +export function getI18n() { + // @ts-expect-error Something weird with the i18n errors + return i18nInstance!.global.t +} + export default { onVueAppInit(app) { const i18n = createI18n({