Skip to content

Commit 479ed3a

Browse files
committed
fix for import-localizedDatabug in pscore (opened issue 8219 in ps core repo)
1 parent c33c38b commit 479ed3a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
#Requires -Version 3.0
22

33
# Import Localized Data
4-
Import-LocalizedData -BindingVariable Messages
4+
if ([System.Threading.Thread]::CurrentThread.CurrentCulture.Name -ne 'en-US')
5+
{
6+
Import-LocalizedData -BindingVariable Messages -UICulture 'en-US'
7+
}
8+
else
9+
{
10+
Import-LocalizedData -BindingVariable Messages
11+
}
512

613
<#
714
.SYNOPSIS

0 commit comments

Comments
 (0)