Add Russian language support and optimize DoughnutChart labels#1222
Merged
Conversation
Contributor
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
Contributor
Rust Backend Coverage ReportCoverage Details |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Russian localization across the app and adjusts UI behavior to better accommodate longer translated strings, especially in compact chart labels and language selection.
Changes:
- Added
rutranslation resources to the frontend i18n setup and typings. - Updated LanguageSelect to derive supported languages dynamically and show both translated + native language names.
- Tweaked DoughnutChart label rendering to avoid showing long labels on XL layouts; extended backend supported language list to include
ru.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/types/i18next.d.ts | Extends i18next resource typings to include ru. |
| src/lib/i18n.ts | Registers Russian translation resources in i18next initialization. |
| src/features/settings/components/general/LanguageSelect.tsx | Builds supported-language options dynamically and displays native names alongside translated labels. |
| src/components/charts/DoughnutChart.tsx | Avoids rendering long translated labels in the center label area for XL layouts. |
| src-tauri/src/services/language_service.rs | Adds ru to backend supported languages and includes a unit test. |
shm11C3
pushed a commit
that referenced
this pull request
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.
Enhance the application by adding support for the Russian language and improving the label rendering in the DoughnutChart for better display. Additionally, the LanguageSelect component now shows native translations alongside English and Japanese.