Skip to content

Commit 00fc4a3

Browse files
Fix over-localization of WinGet command aliases (#6803)
CLI command names and aliases (e.g. 'update', 'add', 'find') were being translated by the localization pipeline because they appeared as plain text in Aliases sections. Two-part fix across all 10 affected command docs: 1. Add 'no-loc' frontmatter metadata — primary protection; tells the localization pipeline never to translate these strings regardless of context. 2. Wrap aliases in backticks — defense-in-depth; code spans are not translated even without no-loc. Files changed: - upgrade.md no-loc: [winget, upgrade, update] - configure.md no-loc: [winget, configure, configuration, dsc] - install.md no-loc: [winget, install, add] - list.md no-loc: [winget, list, ls] - repair.md no-loc: [winget, repair, fix] - search.md no-loc: [winget, search, find] - settings.md no-loc: [winget, settings, config] - show.md no-loc: [winget, show, view] - source.md no-loc: [winget, source, ls, refresh, rm] - uninstall.md no-loc: [winget, uninstall, remove, rm] Fixes: https://learn.microsoft.com/en-us/windows/package-manager/winget/upgrade (and equivalent pages for all other affected commands) Co-authored-by: Copilot <[email protected]>
1 parent 37ed778 commit 00fc4a3

10 files changed

Lines changed: 24 additions & 14 deletions

File tree

‎hub/package-manager/winget/configure.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: configure Command
33
description: Uses a winget configuration file to begin setting up your Windows machine to a desired development environment state.
44
ms.date: 12/11/2025
5+
no-loc: [winget, configure, configuration, dsc]
56
ms.topic: overview
67
---
78

@@ -24,8 +25,8 @@ The **configure** command of the [winget](./index.md) tool uses a [WinGet Config
2425

2526
The following aliases are available for this command:
2627

27-
- configuration
28-
- dsc
28+
- `configuration`
29+
- `dsc`
2930

3031
## Usage
3132

‎hub/package-manager/winget/install.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: install Command
33
description: Installs the specified application.
44
ms.date: 07/15/2025
5+
no-loc: [winget, install, add]
56
ms.topic: overview
67
---
78

@@ -21,7 +22,7 @@ The **install** command requires that you specify the exact string to install. I
2122

2223
The following aliases are available for this command:
2324

24-
- add
25+
- `add`
2526

2627
## Arguments
2728

‎hub/package-manager/winget/list.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: list Command
33
description: Displays the list of listed apps and if an update is available.
44
ms.date: 03/24/2026
5+
no-loc: [winget, list]
56
ms.topic: overview
67
---
78

@@ -17,7 +18,7 @@ The **list** command also supports filters which can be used to limit your list
1718

1819
The following aliases are available for this command:
1920

20-
- ls
21+
- `ls`
2122

2223
## Usage
2324

‎hub/package-manager/winget/repair.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: repair Command
33
description: Repairs the specified application.
44
ms.date: 07/15/2025
5+
no-loc: [winget, repair, fix]
56
ms.topic: overview
67
---
78

@@ -21,7 +22,7 @@ Use the [**list**](list.md) command to identify the application you want to repa
2122

2223
The following aliases are available for this command:
2324

24-
- fix
25+
- `fix`
2526

2627
## Arguments
2728

‎hub/package-manager/winget/search.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: search Command
33
description: Queries the sources for available applications that can be installed
44
ms.date: 07/08/2025
5+
no-loc: [winget, search, find]
56
ms.topic: overview
67
---
78

@@ -23,7 +24,7 @@ The **search** command includes parameters for filtering down the applications r
2324

2425
The following aliases are available for this command:
2526

26-
- find
27+
- `find`
2728

2829
## Arguments
2930

‎hub/package-manager/winget/settings.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: settings command
33
description: Provides customizations for the Windows Package Manager.
44
ms.date: 03/24/2026
5+
no-loc: [winget, settings, config]
56
ms.topic: article
67
---
78

@@ -18,7 +19,7 @@ The **settings** command will launch your default JSON editor. Windows by defaul
1819

1920
The following aliases are available for this command:
2021

21-
- config
22+
- `config`
2223

2324
## Sub-commands
2425

‎hub/package-manager/winget/show.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: show Command
33
description: Displays details for the specified application, including details on the source of the application as well as the metadata associated with the application.
44
ms.date: 07/08/2025
5+
no-loc: [winget, show, view]
56
ms.topic: overview
67
---
78

@@ -15,7 +16,7 @@ The **show** command only shows metadata that was submitted with the application
1516

1617
The following aliases are available for this command:
1718

18-
- view
19+
- `view`
1920

2021
## Usage
2122

‎hub/package-manager/winget/source.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: The WinGet source command
33
description: Use the WinGet source command and subcommands to list and manage the sources WinGet accesses.
44
ms.date: 03/24/2026
5+
no-loc: [winget, source, refresh]
56
ms.topic: reference
67
ms.custom: kr2b-contr-experiment
78
---
@@ -174,7 +175,7 @@ winget source list [[-n] <name>] [<options>]
174175

175176
The following aliases are available for this subcommand:
176177

177-
- ls
178+
- `ls`
178179

179180
#### Arguments
180181

@@ -254,7 +255,7 @@ winget source update [[-n] <name>] [<options>]
254255

255256
The following aliases are available for this subcommand:
256257

257-
- refresh
258+
- `refresh`
258259

259260
#### Arguments
260261

@@ -301,7 +302,7 @@ winget source remove [-n] <name> [<options>]
301302

302303
The following aliases are available for this subcommand:
303304

304-
- rm
305+
- `rm`
305306

306307
#### Arguments
307308

‎hub/package-manager/winget/uninstall.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: uninstall Command
33
description: uninstalls the specified application.
44
ms.date: 07/07/2025
5+
no-loc: [winget, uninstall, remove]
56
ms.topic: overview
67
---
78

@@ -15,8 +16,8 @@ The **uninstall** command requires that you specify the exact application name t
1516

1617
The following aliases are available for this command:
1718

18-
- remove
19-
- rm
19+
- `remove`
20+
- `rm`
2021

2122
## Usage
2223

‎hub/package-manager/winget/upgrade.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: upgrade Command
33
description: upgrades the specified application.
44
ms.date: 07/07/2025
5+
no-loc: [winget, upgrade, update]
56
ms.topic: overview
67
---
78

@@ -15,7 +16,7 @@ The **upgrade** command requires that you specify the exact string to upgrade. I
1516

1617
The following aliases are available for this command:
1718

18-
- update
19+
- `update`
1920

2021
## Usage
2122

0 commit comments

Comments
 (0)