Heimdall Gitea / Detect CI scope (push) Successful in 27s
Heimdall Gitea / Build and tests (push) Successful in 20m48s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 7m28s
Heimdall Gitea / Build and scan agent image (push) Successful in 11m12s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 1m59s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 19m43s
Heimdall Gitea / CI policy (push) Successful in 2s
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2.1 KiB
2.1 KiB
name, description
| name | description |
|---|---|
| api-key-localization | Maintain and verify French and English localization for Heimdall's API key administration page and dialogs. |
API key localization
The API key administration UI is src/Heimdall.Web/Components/Pages/Admin/ApiKeysPage.razor. Its text comes from AdminApiKeys_* entries in src/Heimdall.Web/Localization/SharedResources.*.resx through UiText; the active culture is selected by UiLanguageService.
Updating strings
- Keep every
AdminApiKeys_*key present in the neutral resource and localized resources. UseSharedResources.en.resxas the English wording reference and translate all visible create, one-time-secret, revoke, validation, helper, and empty-state copy inSharedResources.fr.resx. - Replace placeholder values that repeat a key suffix (such as
ExpiryHelp) with actual English fallback copy inSharedResources.resxand an actual French translation inSharedResources.fr.resx. Check the relatedAdminAllAgents_EmptyDescriptionentry when auditing the French admin empty states. - Preserve formatting tokens such as
{0}in interpolated resource values and preserve the API date format when translating optional date labels. - Add or update focused bUnit tests under
tests/Heimdall.Web.Tests/Components/Pages/. Render the page withPageTestBase, serve an empty API key list viaapi/api-keys, and assert the French empty-state description and create-dialog labels with key-suffix placeholders absent. For other dialogs, exercise the corresponding UI action and assert the rendered localized text.
Acceptance
Run the focused tests with:
dotnet test tests/Heimdall.Web.Tests/Heimdall.Web.Tests.csproj --no-restore --filter 'FullyQualifiedName~ApiKeysPageTests|FullyQualifiedName~AllAgentsPageTests'
The acceptance evidence should record the command and result. A test run blocked by shared-runner contention is not a pass; rerun it when the runner is available. This localization-only change does not need a disposable Compose acceptance recipe because it changes no runtime behavior or deployment configuration.