From 1374b720f0006a38eab5a7c1cf1f1d9ad509f5a6 Mon Sep 17 00:00:00 2001 From: Matteo Cerri Date: Sat, 18 Mar 2023 00:06:29 +0100 Subject: [PATCH] Check actual language instead of region "Get-Culture" returns system region, while "Get-UICulture" returns the actual Windows display language. --- Winget-AutoUpdate/functions/Get-NotifLocale.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 b/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 index fb481e7..69f0c53 100644 --- a/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 +++ b/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 @@ -3,7 +3,7 @@ Function Get-NotifLocale { #Get OS locale - $OSLocale = (Get-Culture).Parent + $OSLocale = (Get-UICulture).Parent #Test if OS locale notif file exists $TestOSLocalPath = "$WorkingDir\locale\$($OSLocale.Name).xml"