Skip to content

Commit 9d6eb7d

Browse files
sdwheelerCopilot
andauthored
Fix over-localization of input values (#12813)
* Fix over-localization of input values * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * More backticks --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b4aaf90 commit 9d6eb7d

File tree

4 files changed

+156
-152
lines changed

4 files changed

+156
-152
lines changed

reference/5.1/PSReadLine/Set-PSReadLineOption.md

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
external help file: Microsoft.PowerShell.PSReadLine2.dll-Help.xml
33
Locale: en-US
44
Module Name: PSReadLine
5-
ms.date: 01/18/2026
5+
ms.date: 03/04/2026
66
online version: https://learn.microsoft.com/powershell/module/psreadline/set-psreadlineoption?view=powershell-5.1&WT.mc_id=ps-gethelp
7+
no-loc: [Windows]
78
schema: 2.0.0
89
title: Set-PSReadLineOption
910
---
@@ -278,9 +279,9 @@ Specifies how **PSReadLine** responds to various error and ambiguous conditions.
278279

279280
The valid values are as follows:
280281

281-
- **Audible**: A short beep.
282-
- **Visual**: Text flashes briefly.
283-
- **None**: No feedback.
282+
- `Audible`: A short beep.
283+
- `Visual`: Text flashes briefly.
284+
- `None`: No feedback.
284285

285286
```yaml
286287
Type: Microsoft.PowerShell.BellStyle
@@ -317,21 +318,21 @@ For more information about ANSI color codes, see the Wikipedia article
317318

318319
The valid keys include:
319320

320-
- **ContinuationPrompt**: The color of the continuation prompt.
321-
- **Emphasis**: The emphasis color. For example, the matching text when searching history.
322-
- **Error**: The error color. For example, in the prompt.
323-
- **Selection**: The color to highlight the menu selection or selected text.
324-
- **Default**: The default token color.
325-
- **Comment**: The comment token color.
326-
- **Keyword**: The keyword token color.
327-
- **String**: The string token color.
328-
- **Operator**: The operator token color.
329-
- **Variable**: The variable token color.
330-
- **Command**: The command token color.
331-
- **Parameter**: The parameter token color.
332-
- **Type**: The type token color.
333-
- **Number**: The number token color.
334-
- **Member**: The member name token color.
321+
- `ContinuationPrompt`: The color of the continuation prompt.
322+
- `Emphasis`: The emphasis color. For example, the matching text when searching history.
323+
- `Error`: The error color. For example, in the prompt.
324+
- `Selection`: The color to highlight the menu selection or selected text.
325+
- `Default`: The default token color.
326+
- `Comment`: The comment token color.
327+
- `Keyword`: The keyword token color.
328+
- `String`: The string token color.
329+
- `Operator`: The operator token color.
330+
- `Variable`: The variable token color.
331+
- `Command`: The command token color.
332+
- `Parameter`: The parameter token color.
333+
- `Type`: The type token color.
334+
- `Number`: The number token color.
335+
- `Member`: The member name token color.
335336

336337
```yaml
337338
Type: System.Collections.Hashtable
@@ -406,7 +407,7 @@ Accept wildcard characters: False
406407

407408
### -DingDuration
408409

409-
Specifies the duration of the beep when **BellStyle** is set to **Audible**.
410+
Specifies the duration of the beep when **BellStyle** is set to `Audible`.
410411

411412
```yaml
412413
Type: System.Int32
@@ -422,7 +423,7 @@ Accept wildcard characters: False
422423

423424
### -DingTone
424425

425-
Specifies the tone in Hertz (Hz) of the beep when **BellStyle** is set to **Audible**.
426+
Specifies the tone in Hertz (Hz) of the beep when **BellStyle** is set to `Audible`
426427

427428
```yaml
428429
Type: System.Int32
@@ -443,9 +444,9 @@ Specifies the command line editing mode. Using this parameter resets any key bin
443444

444445
The valid values are as follows:
445446

446-
- **Windows**: Key bindings emulate PowerShell, cmd, and Visual Studio. (default on Windows)
447-
- **Emacs**: Key bindings emulate Bash or Emacs.
448-
- **Vi**: Key bindings emulate Vi.
447+
- `Windows`: Key bindings emulate PowerShell, cmd, and Visual Studio. (default)
448+
- `Emacs`: Key bindings emulate Bash or Emacs.
449+
- `Vi`: Key bindings emulate Vi.
449450

450451
Use `Get-PSReadLineKeyHandler` to see the key bindings for the currently configured **EditMode**.
451452

@@ -720,15 +721,15 @@ Accept wildcard characters: False
720721

721722
### -ViModeIndicator
722723

723-
This option sets the visual indicator for the current **Vi** mode. Either insert mode or command
724+
This option sets the visual indicator for the current `Vi` mode. Either insert mode or command
724725
mode.
725726

726727
The valid values are as follows:
727728

728-
- **None**: There's no indicator.
729-
- **Prompt**: The prompt changes color.
730-
- **Cursor**: The cursor changes size.
731-
- **Script**: User-specified text is printed.
729+
- `None`: There's no indicator.
730+
- `Prompt`: The prompt changes color.
731+
- `Cursor`: The cursor changes size.
732+
- `Script`: User-specified text is printed.
732733

733734
```yaml
734735
Type: Microsoft.PowerShell.ViModeStyle

reference/7.4/PSReadLine/Set-PSReadLineOption.md

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
external help file: Microsoft.PowerShell.PSReadLine2.dll-Help.xml
33
Locale: en-US
44
Module Name: PSReadLine
5-
ms.date: 01/18/2026
5+
ms.date: 03/04/2026
66
online version: https://learn.microsoft.com/powershell/module/psreadline/set-psreadlineoption?view=powershell-7.4&WT.mc_id=ps-gethelp
7+
no-loc: [Windows]
78
schema: 2.0.0
89
title: Set-PSReadLineOption
910
---
@@ -278,9 +279,9 @@ Specifies how **PSReadLine** responds to various error and ambiguous conditions.
278279

279280
The valid values are as follows:
280281

281-
- **Audible**: A short beep.
282-
- **Visual**: Text flashes briefly.
283-
- **None**: No feedback.
282+
- `Audible`: A short beep.
283+
- `Visual`: Text flashes briefly.
284+
- `None`: No feedback.
284285

285286
```yaml
286287
Type: Microsoft.PowerShell.BellStyle
@@ -309,9 +310,9 @@ sequence is `` `e[91m``. You can specify other escape sequences including the fo
309310

310311
Two color settings were added to support customization of the `ListView` in PSReadLine 2.2.0:
311312

312-
- **ListPredictionColor** - set color for the leading `>` character and the trailing source name,
313+
- `ListPredictionColor` - set color for the leading `>` character and the trailing source name,
313314
such as `[History]`. By default, it uses `DarkYellow` as the foreground color.
314-
- **ListPredictionSelectedColor** - set color for indicating a list item is selected. By default, it
315+
- `ListPredictionSelectedColor` - set color for indicating a list item is selected. By default, it
315316
uses `DarkBlack` as the background color.
316317

317318
- 256 color
@@ -324,24 +325,24 @@ For more information about ANSI color codes, see the Wikipedia article
324325

325326
The valid keys include:
326327

327-
- **ContinuationPrompt**: The color of the continuation prompt.
328-
- **Emphasis**: The emphasis color. For example, the matching text when searching history.
329-
- **Error**: The error color. For example, in the prompt.
330-
- **Selection**: The color to highlight the menu selection or selected text.
331-
- **Default**: The default token color.
332-
- **Comment**: The comment token color.
333-
- **Keyword**: The keyword token color.
334-
- **String**: The string token color.
335-
- **Operator**: The operator token color.
336-
- **Variable**: The variable token color.
337-
- **Command**: The command token color.
338-
- **Parameter**: The parameter token color.
339-
- **Type**: The type token color.
340-
- **Number**: The number token color.
341-
- **Member**: The member name token color.
342-
- **InlinePrediction**: The color for the inline view of the predictive suggestion.
343-
- **ListPrediction**: The color for the leading `>` character and prediction source name.
344-
- **ListPredictionSelected**: The color for the selected prediction in list view.
328+
- `ContinuationPrompt`: The color of the continuation prompt.
329+
- `Emphasis`: The emphasis color. For example, the matching text when searching history.
330+
- `Error`: The error color. For example, in the prompt.
331+
- `Selection`: The color to highlight the menu selection or selected text.
332+
- `Default`: The default token color.
333+
- `Comment`: The comment token color.
334+
- `Keyword`: The keyword token color.
335+
- `String`: The string token color.
336+
- `Operator`: The operator token color.
337+
- `Variable`: The variable token color.
338+
- `Command`: The command token color.
339+
- `Parameter`: The parameter token color.
340+
- `Type`: The type token color.
341+
- `Number`: The number token color.
342+
- `Member`: The member name token color.
343+
- `InlinePrediction`: The color for the inline view of the predictive suggestion.
344+
- `ListPrediction`: The color for the leading `>` character and prediction source name.
345+
- `ListPredictionSelected`: The color for the selected prediction in list view.
345346

346347
```yaml
347348
Type: System.Collections.Hashtable
@@ -416,7 +417,7 @@ Accept wildcard characters: False
416417

417418
### -DingDuration
418419

419-
Specifies the duration of the beep when **BellStyle** is set to **Audible**.
420+
Specifies the duration of the beep when **BellStyle** is set to `Audible`.
420421

421422
```yaml
422423
Type: System.Int32
@@ -432,7 +433,7 @@ Accept wildcard characters: False
432433

433434
### -DingTone
434435

435-
Specifies the tone in Hertz (Hz) of the beep when **BellStyle** is set to **Audible**.
436+
Specifies the tone in Hertz (Hz) of the beep when **BellStyle** is set to `Audible`
436437

437438
```yaml
438439
Type: System.Int32
@@ -453,9 +454,9 @@ Specifies the command line editing mode. Using this parameter resets any key bin
453454

454455
The valid values are as follows:
455456

456-
- **Windows**: Key bindings emulate PowerShell, cmd, and Visual Studio. (default on Windows)
457-
- **Emacs**: Key bindings emulate Bash or Emacs. (default on non-Windows platforms)
458-
- **Vi**: Key bindings emulate Vi.
457+
- `Windows`: Key bindings emulate PowerShell, cmd, and Visual Studio. (default on Windows)
458+
- `Emacs`: Key bindings emulate Bash or Emacs. (default on non-Windows platforms)
459+
- `Vi`: Key bindings emulate Vi.
459460

460461
Use `Get-PSReadLineKeyHandler` to see the key bindings for the currently configured **EditMode**.
461462

@@ -671,12 +672,12 @@ Specifies the source for PSReadLine to get predictive suggestions.
671672

672673
Valid values are:
673674

674-
- **None** - disable the predictive IntelliSense feature (default).
675-
- **History** - enable the predictive IntelliSense feature and use the PSReadLine history as the
675+
- `None` - disable the predictive IntelliSense feature (default).
676+
- `History` - enable the predictive IntelliSense feature and use the PSReadLine history as the
676677
only source.
677-
- **Plugin** - enable the predictive IntelliSense feature and use the plugins (`CommandPrediction`)
678+
- `Plugin` - enable the predictive IntelliSense feature and use the plugins (`CommandPrediction`)
678679
as the only source. This value was added in PSReadLine 2.2.0
679-
- **HistoryAndPlugin** - enable the predictive IntelliSense feature and use both history and plugin
680+
- `HistoryAndPlugin` - enable the predictive IntelliSense feature and use both history and plugin
680681
as the sources. This value was added in PSReadLine 2.2.0
681682

682683
```yaml
@@ -693,10 +694,10 @@ Accept wildcard characters: False
693694

694695
### -PredictionViewStyle
695696

696-
Sets the style for the display of the predictive text. The default is **InlineView**.
697+
Sets the style for the display of the predictive text. The default is `InlineView`.
697698

698-
- **InlineView** - the style as existing today, similar as in fish shell and zsh. (default)
699-
- **ListView** - suggestions are rendered in a drop down list, and users can select using
699+
- `InlineView` - the style as existing today, similar as in fish shell and zsh. (default)
700+
- `ListView` - suggestions are rendered in a drop down list, and users can select using
700701
<kbd>UpArrow</kbd> and <kbd>DownArrow</kbd>.
701702

702703
This parameter was added in PSReadLine 2.2.0
@@ -815,15 +816,15 @@ Accept wildcard characters: False
815816

816817
### -ViModeIndicator
817818

818-
This option sets the visual indicator for the current **Vi** mode. Either insert mode or command
819+
This option sets the visual indicator for the current `Vi` mode. Either insert mode or command
819820
mode.
820821

821822
The valid values are as follows:
822823

823-
- **None**: There's no indicator.
824-
- **Prompt**: The prompt changes color.
825-
- **Cursor**: The cursor changes size.
826-
- **Script**: User-specified text is printed.
824+
- `None`: There's no indicator.
825+
- `Prompt`: The prompt changes color.
826+
- `Cursor`: The cursor changes size.
827+
- `Script`: User-specified text is printed.
827828

828829
```yaml
829830
Type: Microsoft.PowerShell.ViModeStyle

0 commit comments

Comments
 (0)