-
Notifications
You must be signed in to change notification settings - Fork 6.1k
[UUF] Prevent overlocalization of keywords in TOC #50822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds code-fencing (backticks) around keywords and commands in TOC (Table of Contents) files to prevent overlocalization during the translation process. The changes ensure that technical keywords remain in their original form and are not inadvertently translated.
Key Changes
- Added backticks around all
dotnetCLI commands in the tools and diagnostics navigation TOC - Added backticks around F# keywords (
let,do,open,nameof) in the F# language reference TOC - Added backticks around C# keywords and operators in the C# language reference TOC
- Updated headings in the
default.mdfile to use sentence case and backtick formatting consistently
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/navigate/tools-diagnostics/toc.yml | Added backticks around all dotnet CLI command names (105 changes) to prevent localization of command keywords |
| docs/fsharp/toc.yml | Added backticks around F# keywords (let, do, open, nameof) in 6 TOC entries |
| docs/csharp/language-reference/toc.yml | Added backticks around C# keywords, operators, and modifiers (108 changes) throughout the language reference navigation |
| docs/csharp/language-reference/operators/default.md | Updated headings to use sentence case and added backticks around default keyword references in section headings |
Use code-fencing to prevent localization of keywords in TOC.Code-fencing only works for Markdown:
Instead, try no-loc in docfx.json for the toc.yml files.Currently the only workable solution for the TOC is to request that it be excluded from localization, which can't be done through this pull request.
Proceeding with smaller, related changes in this PR.
Internal previews