Skip to content

Add Russian language support and optimize DoughnutChart labels#1222

Merged
shm11C3 merged 3 commits into
developfrom
feat/i18n/add-russian
Mar 6, 2026
Merged

Add Russian language support and optimize DoughnutChart labels#1222
shm11C3 merged 3 commits into
developfrom
feat/i18n/add-russian

Conversation

@shm11C3

@shm11C3 shm11C3 commented Mar 6, 2026

Copy link
Copy Markdown
Owner

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.

Copilot AI review requested due to automatic review settings March 6, 2026 16:20
@github-actions github-actions Bot added rust Pull requests that update Rust code frontend feature labels Mar 6, 2026
@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 98.41% (🎯 60%) 995 / 1011
🔵 Statements 97.57% (🎯 60%) 1047 / 1073
🔵 Functions 95.21% (🎯 60%) 239 / 251
🔵 Branches 92.09% (🎯 60%) 326 / 354
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/lib/i18n.ts 100% 100% 100% 100%
Generated in workflow #2419 for commit 20108f5 by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Rust Backend Coverage Report

Coverage Details
Filename                                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
_tests/commands/background_image_test.rs              39                 0   100.00%           6                 0   100.00%          21                 0   100.00%           0                 0         -
_tests/commands/settings_test.rs                     220                 0   100.00%          18                 0   100.00%         166                 0   100.00%           0                 0         -
commands/background_image.rs                          22                 7    68.18%          11                 5    54.55%          19                 7    63.16%           0                 0         -
commands/hardware.rs                                  69                69     0.00%          22                22     0.00%          69                69     0.00%           0                 0         -
commands/settings.rs                                 526               526     0.00%          94                94     0.00%         448               448     0.00%           0                 0         -
commands/system.rs                                     6                 6     0.00%           3                 3     0.00%           5                 5     0.00%           0                 0         -
commands/ui.rs                                        17                17     0.00%           2                 2     0.00%          13                13     0.00%           0                 0         -
commands/updater.rs                                   97                97     0.00%          15                15     0.00%          66                66     0.00%           0                 0         -
enums/error.rs                                       105                 0   100.00%           8                 0   100.00%          89                 0   100.00%           0                 0         -
enums/hardware.rs                                    188                 1    99.47%          15                 0   100.00%         114                 0   100.00%           0                 0         -
enums/settings.rs                                    415                 6    98.55%          24                 0   100.00%         279                 0   100.00%           0                 0         -
infrastructure/database/db.rs                         21                21     0.00%           2                 2     0.00%          12                12     0.00%           0                 0         -
infrastructure/database/gpu_archive.rs                49                49     0.00%           4                 4     0.00%          18                18     0.00%           0                 0         -
infrastructure/database/hardware_archive.rs           41                41     0.00%           4                 4     0.00%          21                21     0.00%           0                 0         -
infrastructure/database/migration.rs                   8                 8     0.00%           1                 1     0.00%          37                37     0.00%           0                 0         -
infrastructure/database/process_stats.rs              41                41     0.00%           4                 4     0.00%          29                29     0.00%           0                 0         -
infrastructure/providers/linux/dmidecode.rs          229                15    93.45%          16                 3    81.25%         319                14    95.61%           0                 0         -
infrastructure/providers/linux/drm_sys.rs            143               143     0.00%          13                13     0.00%          87                87     0.00%           0                 0         -
infrastructure/providers/linux/hwmon.rs              119                94    21.01%           8                 6    25.00%          68                56    17.65%           0                 0         -
infrastructure/providers/linux/kernel.rs             165                22    86.67%          19                 2    89.47%         161                 8    95.03%           0                 0         -
infrastructure/providers/linux/lspci.rs               23                23     0.00%           1                 1     0.00%          12                12     0.00%           0                 0         -
infrastructure/providers/linux/net_sys.rs            171               171     0.00%          13                13     0.00%          93                93     0.00%           0                 0         -
infrastructure/providers/linux/procfs.rs             261                24    90.80%          25                 3    88.00%         222                19    91.44%           0                 0         -
infrastructure/providers/sysinfo_provider.rs          54                54     0.00%           2                 2     0.00%          45                45     0.00%           0                 0         -
lib.rs                                               205               205     0.00%           5                 5     0.00%         111               111     0.00%           0                 0         -
main.rs                                                3                 3     0.00%           1                 1     0.00%           3                 3     0.00%           0                 0         -
models/hardware.rs                                   133                 0   100.00%          11                 0   100.00%          83                 0   100.00%           0                 0         -
models/settings.rs                                   190                 0   100.00%          11                 0   100.00%         163                 0   100.00%           0                 0         -
platform/factory.rs                                   18                18     0.00%           4                 4     0.00%          15                15     0.00%           0                 0         -
platform/linux/cache.rs                               53                53     0.00%           4                 4     0.00%          38                38     0.00%           0                 0         -
platform/linux/gpu.rs                                139               139     0.00%          13                13     0.00%         102               102     0.00%           0                 0         -
platform/linux/memory.rs                              43                43     0.00%           6                 6     0.00%          41                41     0.00%           0                 0         -
platform/linux/mod.rs                                 34                34     0.00%          11                11     0.00%          70                70     0.00%           0                 0         -
platform/linux/network.rs                              4                 4     0.00%           1                 1     0.00%           4                 4     0.00%           0                 0         -
services/archive_service.rs                         1127               154    86.34%          90                15    83.33%         657               134    79.60%           0                 0         -
services/background_image_service.rs                 165                96    41.82%          16                10    37.50%          93                59    36.56%           0                 0         -
services/cpu_service.rs                               32                32     0.00%           4                 4     0.00%          15                15     0.00%           0                 0         -
services/gpu_service.rs                               41                41     0.00%          12                12     0.00%          35                35     0.00%           0                 0         -
services/hardware_service.rs                          67                67     0.00%           5                 5     0.00%          43                43     0.00%           0                 0         -
services/language_service.rs                         101                 0   100.00%          18                 0   100.00%          57                 0   100.00%           0                 0         -
services/memory_service.rs                            22                22     0.00%           4                 4     0.00%          15                15     0.00%           0                 0         -
services/monitoring_service.rs                       734               117    84.06%          53                14    73.58%         373                72    80.70%           0                 0         -
services/motherboard_service.rs                       10                10     0.00%           3                 3     0.00%           7                 7     0.00%           0                 0         -
services/network_service.rs                            9                 9     0.00%           1                 1     0.00%           7                 7     0.00%           0                 0         -
services/process_service.rs                           86                86     0.00%           5                 5     0.00%          50                50     0.00%           0                 0         -
services/settings_service.rs                         246               129    47.56%          30                14    53.33%         234               129    44.87%           0                 0         -
services/system_service.rs                            22                22     0.00%           2                 2     0.00%          12                12     0.00%           0                 0         -
services/ui_service.rs                                45                45     0.00%           8                 8     0.00%          36                36     0.00%           0                 0         -
utils/color.rs                                        66                 1    98.48%           4                 0   100.00%          26                 0   100.00%           0                 0         -
utils/file.rs                                        224                 5    97.77%          14                 0   100.00%         144                 4    97.22%           0                 0         -
utils/formatter.rs                                   195                 8    95.90%          16                 0   100.00%         160                12    92.50%           0                 0         -
utils/ip.rs                                           65                 0   100.00%           5                 0   100.00%          33                 0   100.00%           0                 0         -
utils/logger.rs                                       71                71     0.00%           1                 1     0.00%          38                38     0.00%           0                 0         -
utils/rounding.rs                                     68                 0   100.00%           7                 0   100.00%          41                 0   100.00%           0                 0         -
utils/tauri.rs                                       138                 0   100.00%          17                 0   100.00%          82                 0   100.00%           0                 0         -
workers/hardware_archive.rs                           52                52     0.00%           6                 6     0.00%          36                36     0.00%           0                 0         -
workers/mod.rs                                        24                24     0.00%           2                 2     0.00%          16                16     0.00%           0                 0         -
workers/system_monitor.rs                             53                53     0.00%           4                 4     0.00%          36                36     0.00%           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                               7514              2978    60.37%         724               354    51.10%        5289              2199    58.42%           0                 0         -

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ru translation 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.

Comment thread src/features/settings/components/general/LanguageSelect.tsx
Comment thread src/features/settings/components/general/LanguageSelect.tsx
Comment thread src/lib/i18n.ts
Comment thread src/components/charts/DoughnutChart.tsx
@shm11C3 shm11C3 merged commit ee4805e into develop Mar 6, 2026
33 checks passed
@shm11C3 shm11C3 deleted the feat/i18n/add-russian branch March 6, 2026 16:52
github-actions Bot pushed a commit that referenced this pull request Mar 6, 2026
Add Language Support row to the Features table in both README.md and
docs/README.ja.md to reflect the Russian locale added in #1222 and #1215.
shm11C3 pushed a commit that referenced this pull request Mar 7, 2026
Add Language Support row to the Features table in both README.md and
docs/README.ja.md to reflect the Russian locale added in #1222 and #1215.

Co-authored-by: docs-bot <docs-bot@github-actions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature frontend rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants