Skip to content

Conversation

adamint
Copy link
Member

@adamint adamint commented Jul 17, 2025

Description

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

Copy link
Contributor

@Copilot Copilot AI left a 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">
Copy link
Member

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?

Copy link
Member

@danmoseley danmoseley left a 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

@danmoseley
Copy link
Member

I assume this is not 9.4 as it is likely too late to get localization anyway.

adamint added 4 commits July 18, 2025 12:57
# 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
@adamint adamint enabled auto-merge (squash) July 23, 2025 15:36
@adamint adamint merged commit 1b1d3be into dotnet:main Jul 23, 2025
275 of 276 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants