mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-05 03:58:16 +08:00
Include resource files for additional cultures in HelpProvider. (#1717)
* Creation of Resource files for HelpProvider in the following cultures: it, ja, ko, pt, ru, and zh-Hans. * Add unit test files and update InlineData for new cultures. * Include --version option in CommandAppTests.Help.cs and update related output files
This commit is contained in:
@ -303,6 +303,18 @@ public sealed partial class CommandAppTests
|
||||
[InlineData("sv-SE", "SV")]
|
||||
[InlineData("de", "DE")]
|
||||
[InlineData("de-DE", "DE")]
|
||||
[InlineData("it", "IT")]
|
||||
[InlineData("it-IT", "IT")]
|
||||
[InlineData("ja", "JA")]
|
||||
[InlineData("ja-JP", "JA")]
|
||||
[InlineData("ko", "KO")]
|
||||
[InlineData("ko-KR", "KO")]
|
||||
[InlineData("pt", "PT")]
|
||||
[InlineData("pt-BR", "PT")]
|
||||
[InlineData("ru", "RU")]
|
||||
[InlineData("ru-RU", "RU")]
|
||||
[InlineData("zh-Hans", "ZH-HANS")]
|
||||
[InlineData("zh-Hans-CN", "ZH-HANS")]
|
||||
[Expectation("Default_Without_Args_Additional")]
|
||||
public Task Should_Output_Default_Command_And_Additional_Commands_When_Default_Command_Has_Required_Parameters_And_Is_Called_Without_Args_Localised(string culture, string expectationPrefix)
|
||||
{
|
||||
@ -314,6 +326,7 @@ public sealed partial class CommandAppTests
|
||||
configurator.AddExample("20", "--alive");
|
||||
configurator.SetApplicationCulture(string.IsNullOrEmpty(culture) ? null : new CultureInfo(culture));
|
||||
configurator.SetApplicationName("myapp");
|
||||
configurator.SetApplicationVersion("1.0.0");
|
||||
configurator.AddCommand<GiraffeCommand>("giraffe");
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user