-
Notifications
You must be signed in to change notification settings - Fork 685
Move hardcoded cli strings to resx #10504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move hardcoded cli strings to resx #10504
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request moves hardcoded CLI strings to resource files (.resx) to enable proper localization support. The changes remove inline English strings from the CLI commands and interaction service, replacing them with resource string lookups.
Key changes:
- Replaced hardcoded strings in RunCommand and ExecCommand with resource string references
- Updated ConsoleInteractionService to use localized strings for version update notifications
- Added new resource entries and updated existing ones across all localization files
- Modified translation states to reflect the updated source strings
Reviewed Changes
Copilot reviewed 45 out of 48 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/Aspire.Cli/Commands/RunCommand.cs | Replace hardcoded strings with RunCommandStrings resource references |
src/Aspire.Cli/Commands/ExecCommand.cs | Replace hardcoded strings with ExecCommandStrings resource references |
src/Aspire.Cli/Interaction/ConsoleInteractionService.cs | Replace hardcoded strings with InteractionServiceStrings resource references |
src/Aspire.Cli/Resources/*.resx | Add new resource entries for ConnectingToAppHost, Running, StoppingAppHost, and version notification strings |
src/Aspire.Cli/Resources/xlf/*.xlf | Update all localization files with new resource entries and modified translation states |
Files not reviewed (3)
- src/Aspire.Cli/Resources/ExecCommandStrings.Designer.cs: Language not supported
- src/Aspire.Cli/Resources/InteractionServiceStrings.Designer.cs: Language not supported
- src/Aspire.Cli/Resources/RunCommandStrings.Designer.cs: Language not supported
@@ -200,4 +200,12 @@ | |||
<data name="WaitingForDebuggerToAttachToAppHost" xml:space="preserve"> | |||
<value>Waiting for debugger to attach to app host process</value> | |||
</data> | |||
<data name="NewDashboardVersionAvailable" xml:space="preserve"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this resource name seems wrong. NewCLIVersionAvailable? And below, MoreInfoNewCLIVersion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK excepting for resource names
I assume this is not 9.4 as it is likely too late to get localization anyway. |
# Conflicts: # src/Aspire.Cli/Resources/ExecCommandStrings.Designer.cs
# Conflicts: # src/Aspire.Cli/Resources/ExecCommandStrings.Designer.cs # src/Aspire.Cli/Resources/ExecCommandStrings.resx # src/Aspire.Cli/Resources/RunCommandStrings.Designer.cs # src/Aspire.Cli/Resources/RunCommandStrings.resx
Description
Checklist
<remarks />
and<code />
elements on your triple slash comments?doc-idea
templatebreaking-change
templatediagnostic
template