Allow CLI UI language to be overridden by an environment variable

This commit is contained in:
Nick Guerrera 2017-06-28 18:09:12 -07:00
parent c166a8086b
commit 60e2637143
2 changed files with 79 additions and 0 deletions

View file

@ -198,6 +198,9 @@ namespace Microsoft.DotNet.Cli
// by default, .NET Core doesn't have all code pages needed for Console apps.
// see the .NET Core Notes in https://msdn.microsoft.com/en-us/library/system.diagnostics.process(v=vs.110).aspx
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
// Honor UI language customization
UILanguageOverride.Setup();
}
internal static bool TryGetBuiltInCommand(string commandName, out BuiltInCommandMetadata builtInCommand)