diff --git a/src/layout/sidebar/menu/Menu.tsx b/src/layout/sidebar/menu/Menu.tsx index 4dbbe2f1..d53a7788 100644 --- a/src/layout/sidebar/menu/Menu.tsx +++ b/src/layout/sidebar/menu/Menu.tsx @@ -26,7 +26,8 @@ function getItem( const MainMenu = () => { const { t } = useTranslation() const items: MenuItem[] = PAGES.map((itm) => { - return getItem({t(itm.label)}, itm.path, itm.icon) + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return getItem({t(itm.label as any)}, itm.path, itm.icon) }) const location = useLocation() diff --git a/src/locale/allTranslations.ts b/src/locale/allTranslations.ts index a6d12831..eda2168c 100644 --- a/src/locale/allTranslations.ts +++ b/src/locale/allTranslations.ts @@ -18,8 +18,10 @@ i18n.use(initReactI18next).init({ }) declare module 'i18next' { - interface CustomResourcesTypeOptions { - translation: typeof translationsHE + interface CustomTypeOptions { + resources: { + translation: typeof translationsHE + } } }