diff --git a/.github/ISSUE_TEMPLATE/Localization_Issue.yml b/.github/ISSUE_TEMPLATE/Localization_Issue.yml new file mode 100644 index 0000000000..fac0185ecf --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Localization_Issue.yml @@ -0,0 +1,13 @@ +name: '🌐 Localization Issue' +description: Report issues in our localization. +type: Task +labels: +- Issue-Localization +- Needs-Triage +body: + - type: textarea + attributes: + label: Brief description of your issue + placeholder: Briefly describe which localization needs to be corrected and why. + validations: + required: true diff --git a/.github/policies/labelManagement.issueOpened.yml b/.github/policies/labelManagement.issueOpened.yml index f24d06f8ed..96e6fa1d07 100644 --- a/.github/policies/labelManagement.issueOpened.yml +++ b/.github/policies/labelManagement.issueOpened.yml @@ -15,6 +15,36 @@ configuration: action: Opened then: - addCodeFlowLink + - description: Check for modifications of Localization files in new PRs + if: + - payloadType: Pull_Request + - isAction: + action: Opened + - filesMatchPattern: + pattern: Localization/Resources/* + - not: + activitySenderHasPermission: # Only trigger if the sender doesn't have write permissions, + permission: Write # to avoid adding the label for PRs from MSFT intentionally updating these files + then: + - addLabel: + label: Needs-Author-Feedback + - addLabel: + label: Blocking-Issue + - addReply: + reply: >- + Hello ${issueAuthor}, + + + Thank you for your contribution! It looks like your PR includes changes to localization files. + + + The English resource file [**/en-us/winget.resw](https://github.com/microsoft/winget-cli/blob/master/src/AppInstallerCLIPackage/Shared/Strings/en-us/winget.resw) is the only file contributors should edit for string changes. It feeds the Microsoft localization pipeline. The files under [Localization\Resources\\](https://github.com/microsoft/winget-cli/tree/master/Localization/Resources) are **automatically synced from Microsoft's internal localization system and must not be edited**. Any manual edits will be overwritten on the next sync. + + + Instead of this PR, it would be helpful if you could [open an issue](https://github.com/microsoft/winget-cli/issues/new?template=Localization_Issue.yml) and it will be forwarded to the internal localization team for review. For more information, please see the [Development Guide](https://github.com/microsoft/winget-cli/blob/master/doc/Developing.md#localization). + + + Template: msftbot/PullRequests/LocalizationFileChange - description: Add Needs-Triage to new issues if: - payloadType: Issues