mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:21:10 +02:00
i18n(api-keys): translate ListView via $_() — workbench module mirrors page strings
Adds 2 keys (label_rate_unit_short, action_revoking_short) to the
existing api-keys.page namespace and routes the workbench-embedded
ListView through them:
- Header "+ API Key" button → page.action_create
- Active Keys section header + empty state → existing keys
- Key card metadata: rate-per-min chip, "Created: {date}", revoke button (with revoking state)
- Revoked section header + "Revoked: {date}" line
- "How to Use" section + STT/TTS labels
- Modal: "API Key Created" success state + warning + Copied! toast + Done button
- Modal: Create form (Key Name + placeholder, Scopes, Rate Limit + req/min unit) + Cancel/Create/Creating
- Backdrop close-modal aria-label
- err_pick_scope error fallback
- Date formatter: 'de-DE' → get(locale) ?? 'de'
Baselines: hardcoded 1130 → 1119 (11 cleared); missing-keys baseline unchanged.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5dc0494bb7
commit
e712faf7b7
7 changed files with 70 additions and 34 deletions
|
|
@ -10,7 +10,7 @@
|
|||
"apps/mana/apps/web/src/lib/components/dashboard/widgets/CardsProgressWidget.svelte": 4,
|
||||
"apps/mana/apps/web/src/lib/components/dashboard/widgets/MusicLibraryWidget.svelte": 1,
|
||||
"apps/mana/apps/web/src/lib/components/DetailViewShell.svelte": 1,
|
||||
"apps/mana/apps/web/src/lib/components/feedback/FeedbackQuickModal.svelte": 6,
|
||||
"apps/mana/apps/web/src/lib/components/feedback/FeedbackQuickModal.svelte": 7,
|
||||
"apps/mana/apps/web/src/lib/components/feedback/GlobalFeedbackPill.svelte": 1,
|
||||
"apps/mana/apps/web/src/lib/components/KeyboardShortcutsModal.svelte": 1,
|
||||
"apps/mana/apps/web/src/lib/components/landing/LandingEditor.svelte": 16,
|
||||
|
|
@ -46,7 +46,6 @@
|
|||
"apps/mana/apps/web/src/lib/modules/ai-health/ListView.svelte": 2,
|
||||
"apps/mana/apps/web/src/lib/modules/ai-insights/ListView.svelte": 4,
|
||||
"apps/mana/apps/web/src/lib/modules/ai-workbench/ListView.svelte": 8,
|
||||
"apps/mana/apps/web/src/lib/modules/api-keys/ListView.svelte": 11,
|
||||
"apps/mana/apps/web/src/lib/modules/articles/components/AddUrlForm.svelte": 4,
|
||||
"apps/mana/apps/web/src/lib/modules/articles/components/HighlightMenu.svelte": 5,
|
||||
"apps/mana/apps/web/src/lib/modules/articles/components/HomeSectionSources.svelte": 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue