Skip to content

Conversation

@gewarren
Copy link
Contributor

@gewarren gewarren commented Dec 29, 2025

Use code-fencing to prevent localization of keywords in TOC.
Code-fencing only works for Markdown:

image

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

📄 File 🔗 Preview link
docs/csharp/language-reference/operators/default.md Default value expressions - produce the default value
docs/csharp/language-reference/toc.yml docs/csharp/language-reference/toc

@gewarren gewarren requested a review from BillWagner as a code owner December 29, 2025 20:05
Copilot AI review requested due to automatic review settings December 29, 2025 20:05
@gewarren gewarren requested review from a team as code owners December 29, 2025 20:05
@gewarren gewarren added the user-feedback Issues related to "Unified User Feedback". label Dec 29, 2025
@dotnetrepoman dotnetrepoman bot added this to the December 2025 milestone Dec 29, 2025
Copy link
Contributor

Copilot AI left a 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 dotnet CLI 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.md file 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants