From 1374b720f0006a38eab5a7c1cf1f1d9ad509f5a6 Mon Sep 17 00:00:00 2001 From: Matteo Cerri Date: Sat, 18 Mar 2023 00:06:29 +0100 Subject: [PATCH 1/2] 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" From 4be13794cb24e63a99f59d661b4a2f488b2d2b3f Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Sat, 18 Mar 2023 11:15:33 +0100 Subject: [PATCH 2/2] Update CloseInactiveIssues.yml --- .github/workflows/CloseInactiveIssues.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/CloseInactiveIssues.yml b/.github/workflows/CloseInactiveIssues.yml index a529a5c..593db14 100644 --- a/.github/workflows/CloseInactiveIssues.yml +++ b/.github/workflows/CloseInactiveIssues.yml @@ -3,6 +3,8 @@ on: schedule: - cron: "30 1 * * *" +permissions: read-all + jobs: close-issues: runs-on: ubuntu-latest