Skip to content

fix: replace 33 missing NLS keys causing blank wizard options#15695

Merged
wh-alice merged 4 commits intorelease/6.8from
fix/missing-nls-keys
Apr 14, 2026
Merged

fix: replace 33 missing NLS keys causing blank wizard options#15695
wh-alice merged 4 commits intorelease/6.8from
fix/missing-nls-keys

Conversation

@qfai
Copy link
Copy Markdown
Contributor

@qfai qfai commented Apr 13, 2026

Summary

Fix 33 missing NLS key references that cause blank/empty labels in VS Code QuickPick menus.

Problem

After the JSON-driven wizard migration (#15560), many core.* NLS keys were deleted from fx-core/resource/package.nls.json and replaced with template.* keys in templates/src/ui/resource/package.nls.json. However, the old TypeScript code paths (used by VS platform, CLI, and Add Action flow) still reference the deleted core.* keys, causing getLocalizedString() to return empty strings.

Most notably, the Add Action → MCP option appears as a blank clickable item because core.createProjectQuestion.mcpForDa.label doesn't exist (#15629 introduced this).

Fix

  • Replaced 29 core.* key references with their template.* equivalents
  • Added 4 genuinely missing keys to fx-core/resource/package.nls.json

Affected Files

File Keys Fixed
constants.ts MCP label/detail, RAG source options (6)
CapabilityOptions.ts CEA, Teams agent, RAG source labels (18)
teamsProjectTypeNode.ts RAG label/placeholder (2)
create.ts RAG placeholder (1)
package.nls.json Added 4 missing keys

Verification

  • TypeScript compilation passes
  • NLS key scanner reports 0 missing keys (was 33)

bug

33 NLS keys referenced in fx-core source were missing from package.nls.json,
causing blank/empty labels in VS Code QuickPick menus (notably the Add Action
MCP option). These core.* keys were deleted during the JSON-driven wizard
migration but the old TypeScript code paths still referenced them.

Fixed by:
- Replacing 29 core.* key references with their template.* equivalents
- Adding 4 genuinely missing keys to fx-core package.nls.json

Affected files:
- constants.ts: MCP and RAG option labels
- CapabilityOptions.ts: CEA, Teams agent, RAG source labels
- teamsProjectTypeNode.ts: RAG label/placeholder
- create.ts: RAG placeholder

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@qfai qfai changed the base branch from release/6.7 to release/6.8 April 13, 2026 09:25
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants