-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
HelpProvider supports localisation #1349
HelpProvider supports localisation #1349
Conversation
FrankRay78
commented
Oct 30, 2023
•
edited
Loading
edited
- Extracted hardcoded strings into a default resource file
- Included localised strings for French
- Wrote unit tests for both
+ included localised strings for French
@patriksvensson - I've removed the need to set the culture on the current thread by eliminating statics, and so ensured that no funny business will happen when parallel running tests. |
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.
Two minor changes, but generally LGTM!
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.
A minor thing that I think we should dicuss.
FYI. If you provide me with the localised strings for the following in your own language, along with the culture, I can see about pushing these into this branch ahead of merging: Prints help information |
Sure! Prints help information |
|
For French I'd go slightly less verbose.
|
@patriksvensson, @nils-a, @0xced - I believe the latest push addresses your excellent review comments, as well as updating the French translations (as suggested) and adding Swedish and German localisations. |
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.
I'm happy with the changes.
test/Spectre.Console.Cli.Tests/Spectre.Console.Cli.Tests.csproj
Outdated
Show resolved
Hide resolved
@0xced Addressed all further review comments in the latest push. |
This will allow to slightly simplify the implementation of spectreconsole#1210 See also related discussion on spectreconsole#1349 (comment)
This will allow to slightly simplify the implementation of #1210 See also related discussion on #1349 (comment)
Hello @patriksvensson, Would it be possible for me to contribute by creating the Resource files that are not yet supported? |
Yes please @Tolitech! I can review and merge. |
Hello, @FrankRay78. |