Allow the user to override winget's locale setting
I moved this from a comment to its own issue because it seems to be unique enough to warrant a dedicated feature request.
Description of the new feature/enhancement
I'd like to override the winget locale to change its output language. My OS locale is not English so localized tools make it more difficult to post tutorials and posts for an international audience on my tech blog. This would also help you as developers to get output for bug reports in a language that you can understand.
Proposed technical implementation details (optional)
I'd be really happy if you added an environment variable that would enable me to override the winget locale (like LANG=en_US.UTF-8 <command> or LC_MESSAGES en_US.UTF-8 <command> in Linux):
https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html
For example, assume you are a Swedish user in Spain, and you want your programs to handle numbers and dates according to Spanish conventions, and only the messages should be in Swedish. [...] [S]et the LANG variable to es_ES.UTF-8 and the LC_MESSAGES variable to sv_SE.UTF-8 [...].
LC_ALL is an environment variable that overrides all of these. It is typically used in scripts that run particular programs. For example, configure scripts generated by GNU autoconf use LC_ALL to make sure that the configuration tests don’t operate in locale dependent ways.
Other options could include a winget command line parameter though that would need to be provided on every winget call.
A third option is to store it in the proposed JSON configuration (#416) to have a means of persisting the locale override.
Might be related to #396 Settings Command.
[Policy] Area-Settings
I'd very much like this
I concur! Please add that feature!