diff --git a/web-app/src/i18n/index.ts b/web-app/src/i18n/index.ts index 174d86f14..7c8f53bda 100644 --- a/web-app/src/i18n/index.ts +++ b/web-app/src/i18n/index.ts @@ -2,7 +2,7 @@ export { default as i18n, loadTranslations } from './setup' // Export the React context and hook -export { TranslationProvider, useAppTranslation, TranslationContext } from './TranslationContext' +export { TranslationProvider } from './TranslationContext' // Export types export type { I18nInstance, TranslationResources } from './setup' \ No newline at end of file diff --git a/web-app/src/i18n/setup.ts b/web-app/src/i18n/setup.ts index 2135e9b99..9026100ee 100644 --- a/web-app/src/i18n/setup.ts +++ b/web-app/src/i18n/setup.ts @@ -82,7 +82,7 @@ const translate = (key: string, options: Record = {}): string = return current && typeof current === 'object' && current !== null && key in current ? (current as Record)[key] : undefined - }, obj as unknown) + }, obj as unknown) as string | undefined } // Try to get translation from current language