Repository navigation
Enable OneLoc localization pull requests - #21346
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21346Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21346" |
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Production PR creation remains unvalidated, so enabling repository writes requires maintainer acceptance of the post-merge verification plan.
No open issues 🎉
What changed in this PR
Enables the official OneLocBuild job to open or update localization pull requests for microsoft/aspire targeting main, rather than only producing localization artifacts.
Changes:
- Sets
CreatePrtotruein the existing localization template invocation. - Preserves the non-PR,
main-only gate and existing authentication; PR reuse remains enabled and automatic merging remains disabled.
| File | Description |
|---|---|
eng/pipelines/azure-pipelines.yml |
Enables localization PR creation through the existing OneLocBuild job. |
Review effort: Balanced
David Pine (IEvangelist)
approved these changes
Oct 27, 2026
Contributor
|
✅ No documentation update needed. Branch: docs_optional → build_or_ci_only (proven false positive of the only triggered signal).
|
4 of 14 tasks
Jose Perez Rodriguez (joperezr)
added a commit
that referenced
this pull request
Oct 28, 2026
## Description Catch up the translations already produced by OneLoc while automatic localization check-ins have been unavailable. This is a one-off import for 13 languages across the CLI, dashboard, hosting resources, project templates, and VS Code extension. The translations come from the `Loc` artifact of [official build 20261027.3 / 3118448](https://dev.azure.com/dnceng/internal/_build/results?buildId=3118448), using `LCL-JUNO-PROD-ASPIRE.2026.10.26.2-487e6ead`. That build's source revision is `cd6c70ffe2467a3e95b3dee9239d66fe9613ec49`; the relevant source files were unchanged on `main` when this import was prepared. #21346 enabled automatic PR creation, but the next official OneLoc run failed when the GitHub App attempted to create its localization branch. [microsoft/github-operations#2023](microsoft/github-operations#2023) separately requests access for the app. This PR checks in the available translations without changing the app, pipeline, credentials, or permissions. ### Changes | Area | Updated files | |---|---:| | CLI | 521 | | Dashboard | 157 | | Hosting packages | 110 | | Project templates | 117 | | VS Code extension | 4 | | Total | 909 | Only localized XLF targets and localized template JSON files change. English resources, source code, generated designers, package manifests, dependencies, and OneLoc intermediate/report files are unchanged. ### Examples Previously untranslated Spanish dashboard text now includes: - `Configure your app to send telemetry to the dashboard.` -> `Configure su aplicación para enviar telemetría al panel.` - `Export as Mermaid` -> `Exportar como Mermaid`. - `Terminal disconnected. The last output has been preserved.` -> `Terminal desconectado. Se ha conservado la última salida.` All 605 active dashboard source strings now have targets marked translated in all 13 languages: 7,865 string/language pairs. ### Import safeguards and remaining work - Validated all 85 OneLoc input mappings, 1,105 localized output files, and 30,225 entries for source/key fidelity to checked-in localization inputs, XML or JSON validity, and numeric format-placeholder preservation before import. - Preserved existing extension targets for 12 package updates whose English source no longer matches `package.nls.json`. Only four source-current extension corrections remain in this PR. - The extension has a pre-existing extraction coverage gap: its checked-in XLF inputs contain 62 keys, while `package.nls.json` has 433 keys. Repairing that extraction path is outside this resource-only catch-up. - Removed one trailing space from the generated Russian dashboard translation to pass the whitespace check. Generated wording is otherwise retained except for the 14 confirmed correctness fixes described below. - The package's remaining 848 untranslated string/language pairs, representing 66 CLI source strings, still require subsequent localization updates. This PR does not claim complete product-wide translation coverage or a linguistic review of every target. - After merging `main` through `ee332f69cb` in `09a63ddd2e`, resolved the agent-plugin localization conflicts from #20946 by resource ID. The changed English strings `InitCommand_SelectSkills` and `InitCommand_SkillsOptionDescription` are reset to their current English source with `state="new"` in all 13 languages (26 targets). The 16 newly added strings also remain English with `state="new"` (208 targets). These are additional entries awaiting localization; no replacement translations were authored. The other 1,014 targets in the affected files and all 14 review corrections are preserved. ### Confirmed review corrections Commit `2b1f3e7a4b` makes 14 one-line corrections after checking the review comments against the English source and actual consumers: - Twelve dashboard partial-result messages now preserve the displayed/total relationship. In particular, Turkish trace text no longer reports 100 out of 25 when displaying 25 of 100. Only the count phrases change; the surrounding translated wording and `<strong>` markup are preserved. - The German `aspire wait` resource argument now describes waiting rather than restarting a resource. - The Italian React/C# starter template name uses `AppHost`, not `AppHostt`. These are concrete meaning/typo corrections, not stylistic rewrites of the localization team's output. ### Validation The following commands passed: ```powershell .\restore.cmd dotnet msbuild src\Aspire.Dashboard\Aspire.Dashboard.csproj -t:PrepareResources -p:ErrorOnOutOfDateXlf=true -p:UpdateXlfOnBuild=false -nologo -v:minimal dotnet msbuild src\Aspire.Cli\Aspire.Cli.csproj -t:PrepareResources -p:TargetFramework=net11.0 -p:ErrorOnOutOfDateXlf=true -p:UpdateXlfOnBuild=false -nologo -v:minimal foreach ($project in @('Aspire.Hosting','Aspire.Hosting.Azure','Aspire.Hosting.Browsers','Aspire.Hosting.DevTunnels')) { dotnet msbuild "src\$project\$project.csproj" -t:PrepareResources -p:ErrorOnOutOfDateXlf=true -p:UpdateXlfOnBuild=false -nologo -v:minimal } dotnet msbuild src\Aspire.Hosting.Testing\Aspire.Hosting.Testing.csproj -t:PrepareResources -p:TargetFramework=net10.0 -p:ErrorOnOutOfDateXlf=true -p:UpdateXlfOnBuild=false -nologo -v:minimal git diff --check ``` From `extension`: ```powershell node .\scripts\prepareCorepackYarn.mjs corepack yarn install --frozen-lockfile --non-interactive corepack yarn gulp localizationBundle ``` The actual MSBuild resource pipeline generated and compiled the translated resources for all seven affected .NET projects. The extension's production importer generated all 13 locale files; their 806 entries were compared with the XLF inputs and matched. All four changed extension targets were separately checked against current English source values. After the 14 review corrections, the dashboard and CLI `PrepareResources` commands above were rerun and passed. Each corrected footer was formatted with displayed=25 and total=100 and checked for the intended count relationship. XML comparison confirmed exactly one translated target changed in each of the 13 corrected XLF files, with no changes to sources or metadata; JSON comparison confirmed only the Italian template name changed. `git diff --check` passed. After the merge resolution, the CLI `PrepareResources` command above was rerun and passed. XML checks verified all 96 agent-resource keys against current English in all 13 locales, confirmed that changed/new targets exactly equal English with `state="new"`, and confirmed preservation of the 1,014 unchanged-source targets and all 14 review fixes. `git diff origin/main --check` passed; the PR diff remains limited to the same 909 localized files. Incoming generated designer files were left identical to `main`. Restore succeeded with existing NuGet audit warnings in unrelated playground/test dependencies. A full product build, native/AOT publishing, runtime UI tests, and linguistic review were not run; this change is limited to generated translation resources with the explicit corrections above. No test-selection map change is needed because resource files remain inputs to the existing projects. Fixes # (issue) ## Checklist - Is this feature complete? - [x] Yes. Ready to ship. - [ ] No. Follow-up changes expected. - Are you including unit tests for the changes and scenario tests if relevant? - [ ] Yes - [x] No - Did you add public API? - [ ] Yes - If yes, did you have an API Review for it? - [ ] Yes - [ ] No - Did you add `<remarks />` and `<code />` elements on your triple slash comments? - [ ] Yes - [ ] No - [x] No - Does the change make any security assumptions or guarantees? - [ ] Yes - If yes, have you done a threat model and had a security review? - [ ] Yes - [ ] No - [x] No --------- Co-authored-by: Copilot App <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Allow the official OneLocBuild job to open or update localization pull requests against
microsoft/aspiretargetingmain, instead of only producing localization artifacts.Change
CreatePrfromfalsetotrue. Keep the existing non-PR,main-only job gate, localization package, GitHub App authentication, and mirror target unchanged. The shared template continues to reuse an existing localization PR (ReusePr: true) and does not automatically merge it (AutoCompletePr: false).Arcade documents enabling PR creation after localization onboarding: https://github.com/dotnet/arcade/blob/main/Documentation/OneLocBuild.md#onboarding-to-onelocbuild-using-arcade.
Validation
git diff --check— passed before commit.b11685d93425e7938716bf22aa4fb67fb3d2eb03. TheOneLocBuildjob,Get GitHub App installation tokentask, andOneLocBuildtask all succeeded. The token-acquisition log confirms an installation token was obtained formicrosoftusing the currently vendored authentication path, so this PR does not change Arcade authentication. The overall build failed outside OneLoc; it is not an end-to-end passing baseline for this change.pipelines_write(action=run_pipeline, pipelineId=1602, previewRun=true, yamlOverride=...)— blocked:User not permitted to queue dry run for build pipeline 1602 with modified YAML. Permissions needed: EditBuild. No validation run was created and no localization PR was triggered.eng/pipelines/**routing is unchanged.mainbuild, confirm token acquisition and OneLocBuild succeed, and verify that the localization App opens or updates the PR againstmainwhen translated changes are available. A successful build without translated changes may legitimately produce no PR.Security considerations
This enables repository writes through the existing localization GitHub App installation. Repository access and pipeline service-connection authorization are reported as configured; the existing production token-acquisition path succeeds. It introduces no new credentials or permission configuration, retains the protected
main-only/non-PR gate, and leaves automatic merging disabled.Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?