Fix tooltip line breaks and ambiguous msgids in all languages (#17055)

This commit is contained in:
Ian Bassi authored and GitHub committed 2026-10-30 12:52:34 -03:00
1 parent b1953ab423
commit 3bc827066d
43 files changed
+19887 -7236

No files matched your search

+18 -13
View File
@@ -124,19 +124,24 @@ jobs:
return;
}
try {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pr.number,
labels: ['Localization']
});
core.info('Applied Localization label.');
} catch (error) {
if (isPermissionDenied(error)) {
core.warning('Cannot add Localization label because token cannot write.');
} else {
throw error;
// The label marks translation-only PRs: every changed file is a .po or .pot catalog
if (!files.every((file) => /\.pot?$/.test(file.filename))) {
core.info('Files other than .po/.pot catalogs changed; skipping Localization label.');
} else {
try {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pr.number,
labels: ['Localization']
});
core.info('Applied Localization label.');
} catch (error) {
if (isPermissionDenied(error)) {
core.warning('Cannot add Localization label because token cannot write.');
} else {
throw error;
}
}
}