You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow the user to override winget's locale setting #422
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.
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):
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.
As discovered in #6282 , PrimaryLanguageOverride can be utilised for that feature. It will integrate nicely with the globalization system that winget uses.
Activity
denelon commentedon Jun 15, 2020
Might be related to #396 Settings Command.
Trenly commentedon Jun 16, 2023
[Policy] Area-Settings
CanePlayz commentedon Jul 10, 2023
I'd very much like this
piknockyou commentedon Dec 6, 2025
I concur!
Please add that feature!
docentYT commentedon Jun 12, 2026
As discovered in #6282 , PrimaryLanguageOverride can be utilised for that feature. It will integrate nicely with the globalization system that winget uses.