Skip to content

Commit

Permalink
Added remarks to better qualify what setting the culture actually does.
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankRay78 committed Nov 6, 2023
1 parent 1bac26d commit 2d4f339
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Spectre.Console.Cli/ConfiguratorExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public static IConfigurator SetHelpProvider<T>(this IConfigurator configurator)
/// <param name="configurator">The configurator.</param>
/// <param name="culture">The culture.</param>
/// <returns>A configurator that can be used to configure the application further.</returns>
/// <remarks>
/// Text displayed by <see cref="Help.HelpProvider"/> can be localised, but defaults to English.
/// Setting the application culture informs the resource manager which culture to use when fetching strings.
/// English will be used when a culture has not been specified
/// or a string has not been localised for the specified culture.
/// </remarks>
public static IConfigurator SetApplicationCulture(this IConfigurator configurator, CultureInfo culture)
{
if (configurator == null)
Expand Down

0 comments on commit 2d4f339

Please sign in to comment.