Skip to content

(AB-506302) Fix overlocalization in New-Item#12709

Merged
sdwheeler merged 2 commits intoMicrosoftDocs:mainfrom
michaeltlombardi:ab-506302/main/fix-overloc-new-item
Jan 28, 2026
Merged

(AB-506302) Fix overlocalization in New-Item#12709
sdwheeler merged 2 commits intoMicrosoftDocs:mainfrom
michaeltlombardi:ab-506302/main/fix-overloc-new-item

Conversation

@michaeltlombardi
Copy link
Copy Markdown
Contributor

@michaeltlombardi michaeltlombardi commented Jan 28, 2026

PR Summary

Prior to this change, the Target alias for the Value parameter was being overlocalized.

This change:

  • Adds Target to the no-loc list.
  • Fixes AB#506302

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributor's guide.
  • Style: This PR adheres to the style guide.

Prior to this change, the **Target** alias for the **Value** parameter
was being overlocalized.

This change:

- Adds `Target` to the `no-loc` list.
- Fixes AB#506302
Copilot AI review requested due to automatic review settings January 28, 2026 17:00
@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

Copy link
Copy Markdown
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

Updates the New-Item reference documentation to prevent localization of the Target alias (AB#506302).

Changes:

  • Adds Target to the no-loc front-matter for New-Item across PowerShell 5.1, 7.4, 7.5, and 7.6.
  • Updates ms.date in the affected reference pages.
  • Minor markdown formatting tweak in the 7.4 example text (Notice.txt formatting).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
reference/7.6/Microsoft.PowerShell.Management/New-Item.md Adds no-loc entry for Target and updates ms.date.
reference/7.5/Microsoft.PowerShell.Management/New-Item.md Adds no-loc entry for Target and updates ms.date.
reference/7.4/Microsoft.PowerShell.Management/New-Item.md Adds no-loc entry for Target, updates ms.date, and tweaks example text formatting.
reference/5.1/Microsoft.PowerShell.Management/New-Item.md Adds no-loc entry for Target and updates ms.date.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +4 to +7
no-loc:
- Target
Module Name: Microsoft.PowerShell.Management
ms.date: 02/23/2024
ms.date: 01/28/2026
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

no-loc front-matter formatting is inconsistent with the established pattern in cmdlet reference docs. Other cmdlet pages use a single-line YAML array (e.g., no-loc: [Import-Module, -Scope] in reference/7.6/Microsoft.PowerShell.Core/Import-Module.md:6) and typically place no-loc after ms.date. Consider switching to no-loc: [Target] and positioning it after ms.date for consistency and tooling predictability.

Copilot uses AI. Check for mistakes.
Comment on lines +4 to +7
no-loc:
- Target
Module Name: Microsoft.PowerShell.Management
ms.date: 02/23/2024
ms.date: 01/28/2026
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

no-loc front-matter formatting is inconsistent with the established pattern in cmdlet reference docs. Other cmdlet pages use a single-line YAML array (e.g., no-loc: [Import-Module, -Scope] in reference/7.6/Microsoft.PowerShell.Core/Import-Module.md:6) and typically place no-loc after ms.date. Consider switching to no-loc: [Target] and positioning it after ms.date for consistency and tooling predictability.

Copilot uses AI. Check for mistakes.
Comment on lines +4 to +7
no-loc:
- Target
Module Name: Microsoft.PowerShell.Management
ms.date: 02/23/2024
ms.date: 01/28/2026
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

no-loc front-matter formatting is inconsistent with the established pattern in cmdlet reference docs. Other cmdlet pages use a single-line YAML array (e.g., no-loc: [Import-Module, -Scope] in reference/7.6/Microsoft.PowerShell.Core/Import-Module.md:6) and typically place no-loc after ms.date. Consider switching to no-loc: [Target] and positioning it after ms.date for consistency and tooling predictability.

Copilot uses AI. Check for mistakes.
Comment on lines +4 to +7
no-loc:
- Target
Module Name: Microsoft.PowerShell.Management
ms.date: 02/23/2024
ms.date: 01/28/2026
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

no-loc front-matter formatting is inconsistent with the established pattern in cmdlet reference docs. Other cmdlet pages use a single-line YAML array (e.g., no-loc: [Import-Module, -Scope] in reference/7.6/Microsoft.PowerShell.Core/Import-Module.md:6) and typically place no-loc after ms.date. Consider switching to no-loc: [Target] and positioning it after ms.date for consistency and tooling predictability.

Copilot uses AI. Check for mistakes.
@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 737916f:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Management/New-Item.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Management/New-Item.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Management/New-Item.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Management/New-Item.md ✅Succeeded View (powershell-7.6)

For more details, please refer to the build report.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit e3fac3f:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Management/New-Item.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Management/New-Item.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Management/New-Item.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Management/New-Item.md ✅Succeeded View (powershell-7.6)

For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit 5aa93d8 into MicrosoftDocs:main Jan 28, 2026
5 checks passed
@michaeltlombardi michaeltlombardi deleted the ab-506302/main/fix-overloc-new-item branch April 8, 2026 16:15
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