From 682b6b70dc65e14e8dc6c68c59501d5ca1a2171a Mon Sep 17 00:00:00 2001 From: c0mrade Date: Fri, 13 Mar 2026 12:04:25 +0300 Subject: [PATCH] fix: correct locale loader type to support nested translation objects --- src/i18n.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n.ts b/src/i18n.ts index 1f803fd..2b20910 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -1,8 +1,8 @@ -import i18n from 'i18next'; +import i18n, { type ResourceLanguage } from 'i18next'; import { initReactI18next } from 'react-i18next'; import LanguageDetector from 'i18next-browser-languagedetector'; -const localeLoaders: Record Promise<{ default: Record }>> = { +const localeLoaders: Record Promise<{ default: ResourceLanguage }>> = { ru: () => import('./locales/ru.json'), en: () => import('./locales/en.json'), zh: () => import('./locales/zh.json'),