Skip to content

Update xlf copilot instructions #49780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update xlf copilot instructions #49780

wants to merge 1 commit into from

Conversation

jjonescz
Copy link
Member

Copilot often tells me I shouldn't have updated xlf files manually but I never do that. For example #49769 (comment). I've updated the instructions so hopefully that works better.

@Copilot Copilot AI review requested due to automatic review settings July 15, 2025 06:54
Copy link
Contributor

@Copilot 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 enhances the Copilot guidance around .xlf file updates by specifying how to recognize correctly auto-modified files.

  • Adds detail that auto-modified .xlf entries are marked with a needs-review-translation or new state.
  • Updates the Localization section in the Copilot instructions.
Comments suppressed due to low confidence (1)

.github/copilot-instructions.md:14

  • [nitpick] Consider specifying which XML elements this refers to (for example, <target> elements with a state attribute) to make the instruction clearer.
- Avoid modifying .xlf files and instead prompt the user to update them using the `/t:UpdateXlf` target on MSBuild. Correctly automatically modified .xlf files have elements with state `needs-review-translation` or `new`.

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.

1 participant