Skip to content

Complete Russian localization and add multilingual DocFX documentation - #3900

Merged
AArnott merged 14 commits into
DotNetAnalyzers:masterfrom
SergeyZhurikhin:master
Oct 10, 2026
Merged

AArnott merged 14 commits into
DotNetAnalyzers:masterfrom
SergeyZhurikhin:master

Conversation

@SergeyZhurikhin

@SergeyZhurikhin SergeyZhurikhin commented Nov 11, 2024 •

Copy link
Copy Markdown
Contributor

Summary

Refreshes the original Russian localization contribution by @SergeyZhurikhin against current master, preserving the original commits and authorship. The original scope has been expanded to complete the Russian edition and integrate it with the current DocFX documentation site.

  • Complete Russian translations for all 745 resource strings across the 10 resource families, with matching resource keys and preserved format placeholders.
  • Translate and refresh all 213 documentation pages, including guidance added on current master, while preserving code examples and incoming configuration bookmarks.
  • Build English at the existing URLs and Russian under ru-ru/ within one GitHub Pages artifact. Each edition has its own navigation, interface labels, search index, and rule-status page.
  • Add a responsive, accessible language dropdown using a shared locale list. Switching languages preserves the current page; additional languages do not add separate header controls.
  • Document local preview and future-language setup, and add localization regression coverage and CI documentation builds.

There is no automatic translation fallback: the Russian edition explicitly covers every current English page. Existing English URLs remain unchanged.

Validation

  • English and Russian DocFX builds: zero warnings and errors.
  • Documentation/localization tests: 18 passed, including simulated additional languages, resource parity, code-example parity, separate search indexes, and status-page failures.
  • Release C# 6 test-project build: zero warnings and errors; 142 selected tests passed for constructor documentation, settings, and resource localization.
  • Local browser review: Russian search and rule status, desktop language switching, keyboard dismissal, and mobile dropdown layout.

The full compiler-version test matrix is left to CI. This PR is draft pending green checks; humans merge.

Attribution

Retains the original Russian localization history, including commit efd1d57cc26e6eec77c5ff3659cce388078d8e34. The refresh and remaining translations build on that contribution.

@codecov

codecov Bot commented Nov 11, 2024 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.56098% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 97.59%. Comparing base (9f576ae) to head (cd410ea).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3900   +/-   ##
=======================================
  Coverage   97.58%   97.59%           
=======================================
  Files        1280     1281    +1     
  Lines      136383   136424   +41     
  Branches     4410     4412    +2     
=======================================
+ Hits       133095   133137   +42     
+ Misses       2130     2129    -1     
  Partials     1158     1158           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

SergeyZhurikhin and others added 4 commits October 10, 2026 09:23
(cherry picked from commit efd1d57)
Refresh Russian resources and all documentation against current master. Build separate localized DocFX editions with translated status reports, Russian search, and a scalable language dropdown. Preserve source code examples verbatim, including their original whitespace.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve the original contributor commits alongside current master and retain the reviewed, refreshed translations when resolving add/add conflicts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@AArnott
AArnott marked this pull request as draft October 10, 2026 15:44
Translate newly merged positional-record documentation and escaped-identifier file-name guidance.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@AArnott AArnott changed the title Add localization for ru-RU Complete Russian localization and add multilingual DocFX documentation Oct 10, 2026
@AArnott
AArnott marked this pull request as ready for review October 10, 2026 17:38
Copilot AI balanced review requested due to automatic review settings October 10, 2026 17:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Automated checks cover structural parity, but the 213-page translation and site-wide localization warrant final human linguistic and UX review.

0 open findings

What changed in this PR

Adds complete Russian localization for analyzer resources and DocFX documentation, while preserving existing English URLs.

Changes:

  • Adds Russian resources and 213 translated documentation pages.
  • Builds English and Russian DocFX sites with localized navigation, search, status pages, and language switching.
  • Adds localization parity tests and CI integration.
File(s) Description
.gitignore Ignores localized status reports.
.github/​workflows/​build.yml Builds and tests both documentation editions.
CONTRIBUTING.md Documents multilingual site maintenance.
docfx.json Configures English site and shared template.
docfx.ru-ru.json Configures the Russian site.
build/​documentation.ps1 Builds editions and localizes status data.
build/​documentation-localization.test.cjs Tests localization and generated sites.
build/​docfx/​common/​public/​main.css Styles the language picker.
build/​docfx/​common/​public/​main.js Implements language switching and localized UI behavior.
build/​docfx/​ru-ru/​token.json Supplies Russian DocFX labels.
docs/​status.ru-ru.md Adds the localized rule-status fragment.
StyleCop.Analyzers/​StyleCop.Analyzers.Test/​ResourceLocalizationUnitTests.cs Verifies Russian resource completeness.
StyleCop.Analyzers/​StyleCop.Analyzers.Test/​DocumentationRules/​SA1642UnitTests.cs Tests Russian constructor documentation.
StyleCop.Analyzers/​StyleCop.Analyzers/​DocumentationRules/​DocumentationResources.ru-RU.resx Localizes documentation resources.
StyleCop.Analyzers/​StyleCop.Analyzers/​Helpers/​HelpersResources.ru-RU.resx Localizes shared resources.
StyleCop.Analyzers/​StyleCop.Analyzers/​LayoutRules/​LayoutResources.ru-RU.resx Localizes layout-rule resources.
StyleCop.Analyzers/​StyleCop.Analyzers/​MaintainabilityRules/​MaintainabilityResources.ru-RU.resx Localizes maintainability resources.
StyleCop.Analyzers/​StyleCop.Analyzers/​NamingRules/​NamingResources.ru-RU.resx Localizes naming-rule resources.
StyleCop.Analyzers/​StyleCop.Analyzers/​OrderingRules/​OrderingResources.ru-RU.resx Localizes ordering-rule resources.
StyleCop.Analyzers/​StyleCop.Analyzers/​ReadabilityRules/​ReadabilityResources.ru-RU.resx Localizes readability resources.
StyleCop.Analyzers/​StyleCop.Analyzers/​Settings/​SettingsResources.ru-RU.resx Localizes settings resources.
StyleCop.Analyzers/​StyleCop.Analyzers/​SpacingRules/​SpacingResources.ru-RU.resx Localizes spacing-rule resources.
StyleCop.Analyzers/​StyleCop.Analyzers/​SpecialRules/​SpecialResources.ru-RU.resx Localizes special-rule resources.
documentation/​ru-ru/​*.md (213 files) Adds Russian guides, rule references, indexes, and landing pages.
documentation/​ru-ru/​toc.yml Adds the Russian sidebar.
documentation/​ru-ru/​navbar/​toc.yml Adds Russian top navigation.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Retain complete reviewed Russian resource translations and mirror upstream link-checker compatibility changes in the Russian documentation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@AArnott
AArnott marked this pull request as draft October 10, 2026 17:45
@AArnott
AArnott marked this pull request as ready for review October 10, 2026 17:58
Copilot AI balanced review requested due to automatic review settings October 10, 2026 17:58
@AArnott
AArnott enabled auto-merge October 10, 2026 17:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The broad translation and deployment changes require final native-language review and confirmation of the full CI matrix.

0 open findings

🧠 Review effort: Balanced

@AArnott
AArnott merged commit 3556dab into DotNetAnalyzers:master Oct 10, 2026
28 of 29 checks passed
This was referenced Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants