Skip to content

Address feedback on localization guidance for automated PRs#40800

Merged
benhillis merged 4 commits into
masterfrom
copilot/wip-address-feedback-localization-guidance
Jun 16, 2026
Merged

Address feedback on localization guidance for automated PRs#40800
benhillis merged 4 commits into
masterfrom
copilot/wip-address-feedback-localization-guidance

Conversation

Copilot AI commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Summary of the Pull Request

This PR updates localization guidance to clarify that automated localization-service pull requests are exempt from the contributor-facing rule about filing issues instead of directly editing non-en-US localized files. It also updates branch ancestry so the PR diff only contains the guidance changes.

PR Checklist

  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

  • Updated CONTRIBUTING.md localization guidance to explicitly exclude automated localization-service PRs generated by the localization pipeline.
  • Updated .github/copilot-instructions.md localization guidance with the same exemption so automated PR handling is consistent.
  • Merged origin/master into this branch so unrelated locale Resources.resw file changes from the stacked base are no longer included in this PR diff.
  • This addresses the stacked PR feedback from: Localization change from build: 149610132 #40799 (comment)
  • Original PR context: Localization change from build: 149610132 #40799

Validation Steps Performed

  • Ran python3 tools/devops/validate-copyright-headers.py
  • Ran python3 tools/devops/validate-localization.py
  • Verified PR three-dot diff vs origin/master contains only:
    • CONTRIBUTING.md
    • .github/copilot-instructions.md

Base automatically changed from user/localization/149610132 to master June 13, 2026 13:24
Copilot AI requested review from Copilot and removed request for Copilot June 13, 2026 13:25
Copilot AI changed the title [WIP] [WIP] Address feedback on localization guidance for automated PRs Address feedback on localization guidance for automated PRs Jun 13, 2026
Copilot AI requested a review from benhillis June 13, 2026 13:26
@benhillis

Copy link
Copy Markdown
Member

@copilot - why are so many unrelated localization files in this pr? I just want the guidance so future localization update PRs don't get a million comments about "you shouldn't modify this file"

Copilot AI commented Jun 13, 2026

Copy link
Copy Markdown
Contributor Author

@copilot - why are so many unrelated localization files in this pr? I just want the guidance so future localization update PRs don't get a million comments about "you shouldn't modify this file"

Those files were showing up because this branch was based before master absorbed localization commit #40799, so the PR three-dot diff still included them. I merged origin/master into this branch in d4add1a, and now the PR diff is only the two guidance files (CONTRIBUTING.md and .github/copilot-instructions.md).

@benhillis benhillis marked this pull request as ready for review June 15, 2026 14:35
@benhillis benhillis requested a review from a team as a code owner June 15, 2026 14:35
Copilot AI review requested due to automatic review settings June 15, 2026 14:35
@benhillis

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates contributor and Copilot guidance around localization to explicitly exempt automated localization-service pull requests from the “file an issue; don’t directly edit non-en-US localized files” rule, keeping automated localization pipeline behavior consistent with contributor-facing guidance.

Changes:

  • Update CONTRIBUTING.md localization section to add an explicit exemption for automated localization-service PRs.
  • Update .github/copilot-instructions.md localization guidance with the same exemption.

Reviewed changes

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

File Description
CONTRIBUTING.md Adds an explicit exemption in localization/translation guidance for automated localization-service PRs.
.github/copilot-instructions.md Aligns Copilot localization guidance with CONTRIBUTING by exempting automated localization-service PRs.

Comment thread CONTRIBUTING.md
If you spot a bad, missing, or incorrect translation in WSL's UI, **please file an issue** describing the problem (which language, what string, and what it should say) rather than opening a pull request.

WSL's localized files are generated by a separate localization team and are regenerated downstream, so any translation edits made in a pull request here would be overwritten and cannot be merged. This covers the per-locale UI strings (`localization/strings/<locale>/Resources.resw`) and the per-locale Intune/group-policy templates (`intune/<locale>/WSL.adml`). Filing an issue lets us route the fix to the team that owns those translations. The `en-US` source files (`localization/strings/en-US/Resources.resw`, `intune/en-US/WSL.adml`, and the language-neutral `intune/WSL.admx`) are the exception, since those originate in this repository.
WSL's localized files are generated by a separate localization team and are regenerated downstream, so any translation edits made in a pull request here would be overwritten and cannot be merged. This covers the per-locale UI strings (`localization/strings/<locale>/Resources.resw`) and the per-locale Intune/group-policy templates (`intune/<locale>/WSL.adml`). Filing an issue lets us route the fix to the team that owns those translations. The `en-US` source files (`localization/strings/en-US/Resources.resw`, `intune/en-US/WSL.adml`, and the language-neutral `intune/WSL.admx`) are the exception, since those originate in this repository. This guidance does not apply to automated localization-service pull requests that are generated by that pipeline.
- All new user-facing strings must have entries in `localization/strings/en-US/Resources.resw`
- In Resources.resw comments, use `{Locked="..."}` to prevent translation of `.wslconfig` property key names
- Localized files are generated by a separate localization team and regenerated downstream, so translation edits in a GitHub PR cannot be merged (they would be overwritten). This covers the per-locale `localization/strings/<locale>/Resources.resw` UI strings and the per-locale `intune/<locale>/WSL.adml` policy templates (anything other than the `en-US` sources and the neutral `intune/WSL.admx`). Filing a GitHub issue is the correct path for contributors; see `CONTRIBUTING.md`.
- Localized files are generated by a separate localization team and regenerated downstream, so translation edits in a GitHub PR cannot be merged (they would be overwritten). This covers the per-locale `localization/strings/<locale>/Resources.resw` UI strings and the per-locale `intune/<locale>/WSL.adml` policy templates (anything other than the `en-US` sources and the neutral `intune/WSL.admx`). Filing a GitHub issue is the correct path for contributors; see `CONTRIBUTING.md`. Ignore this guidance for automated localization-service PRs that are generated by that pipeline.
@benhillis benhillis merged commit 32c6903 into master Jun 16, 2026
12 checks passed
@benhillis benhillis deleted the copilot/wip-address-feedback-localization-guidance branch June 16, 2026 04:10
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.

5 participants