feat(i18n): add Russian locale and enable 'ru' language; translate core keys to Russian

This commit is contained in:
Chebotov Nickolay
2026-02-06 11:26:32 +03:00
parent 26fa1ea98e
commit ad1387d076
4 changed files with 1123 additions and 5 deletions

View File

@@ -6,12 +6,14 @@ import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import zhCN from './locales/zh-CN.json';
import en from './locales/en.json';
import ru from './locales/ru.json';
import { getInitialLanguage } from '@/utils/language';
i18n.use(initReactI18next).init({
resources: {
'zh-CN': { translation: zhCN },
en: { translation: en }
en: { translation: en },
ru: { translation: ru }
},
lng: getInitialLanguage(),
fallbackLng: 'zh-CN',