Files
Heimdall/skills/api-key-localization/SKILL.md
T
arnaud.dartois 5b1255ad80
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
Fix camera access and related UI issues (#311)
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-08 21:19:00 +01:00

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

  1. Keep every AdminApiKeys_* key present in the neutral resource and localized resources. Use SharedResources.en.resx as the English wording reference and translate all visible create, one-time-secret, revoke, validation, helper, and empty-state copy in SharedResources.fr.resx.
  2. Replace placeholder values that repeat a key suffix (such as ExpiryHelp) with actual English fallback copy in SharedResources.resx and an actual French translation in SharedResources.fr.resx. Check the related AdminAllAgents_EmptyDescription entry when auditing the French admin empty states.
  3. Preserve formatting tokens such as {0} in interpolated resource values and preserve the API date format when translating optional date labels.
  4. Add or update focused bUnit tests under tests/Heimdall.Web.Tests/Components/Pages/. Render the page with PageTestBase, serve an empty API key list via api/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.