feat: Add Russian i18n support for KopiaUI#422
Open
kirillz wants to merge 2 commits intokopia:mainfrom
Open
Conversation
Features: - Add i18n infrastructure (i18next, react-i18next, prop-types) - Add Russian translations for main UI components - Add language switcher in navbar (EN, RU) - Auto-detect and save system theme (light/dark/pastel/ocean) - Support for 4 themes with distinctive colors Translations: - Navigation: Снимки, Политики, Задачи, Репозиторий, Настройки - Preferences: Внешний вид, Уведомления, Тема, Размер шрифта - Notifications: Все тексты уведомлений - Language switcher: EN English, RU Русский Themes: - Light: White navbar, black text, gray hover - Dark: Dark navbar (#222222), light text, blue hover - Pastel: Purple navbar (#c095e4), white text, lavender hover - Ocean: Blue navbar (#03045e), white text, cyan hover Files: - src/i18n/ - i18n configuration and translations - public/theme-detector.js - System theme detection with localStorage - src/App.jsx - Language switcher + translations - src/pages/Preferences.jsx - Translated preferences - src/components/notifications/* - Translated notifications - src/css/App.css - Optimized theme-aware navbar styles - src/contexts/UIPreferencesContext.tsx - Theme persistence Testing: - npm run build ✓ - Dev server ✓ - All 4 themes working ✓ - Language switcher working ✓ - Theme persistence working ✓
a5ef559 to
5bfc13a
Compare
5bfc13a to
22ed4c4
Compare
kirillz
commented
Mar 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds internationalization (i18n) support to Kopia HTML UI with initial Russian language translation.
Changes
New Files (4)
src/i18n/i18n.js- i18n configurationsrc/i18n/locales/en.json- English translationssrc/i18n/locales/ru.json- Russian translationspublic/theme-detector.js- System theme detectionModified Files (10)
package.json+package-lock.json- i18n dependenciessrc/App.jsx- Language switcher + translationssrc/css/App.css- Theme-aware navbar stylessrc/index.jsx- i18n initializationsrc/pages/Preferences.jsx- Translated preferencessrc/components/notifications/NotificationEditor.jsx- Translated notificationssrc/contexts/UIPreferencesContext.tsx- Theme persistencevite.config.js- eslint configurationDependencies Added
{ "i18next": "^25.8.14", "react-i18next": "^16.5.5", "i18next-browser-languagedetector": "^8.2.1", "prop-types": "^15.8.1" }Features
For Users
For Developers
Translated Elements
Themes
Testing
Browser Support
Future Work
Checklist