|
|
@ -82,7 +82,16 @@ Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force |
|
|
|
Remove-Module -Name PolicyFileEditor -Force -ErrorAction Ignore |
|
|
|
Import-Module -Name $PSScriptRoot\bin\PolicyFileEditor\PolicyFileEditor.psd1 -PassThru -Force |
|
|
|
|
|
|
|
Import-LocalizedData -BindingVariable Global:Localization -UICulture en-US -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia |
|
|
|
# PowerShell 7 doesn't load en-us localization automatically if there is no localization folder in user's language which is determined by $PSUICulture |
|
|
|
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/import-localizeddata?view=powershell-7.2 |
|
|
|
try |
|
|
|
{ |
|
|
|
Import-LocalizedData -BindingVariable Global:Localization -UICulture $PSUICulture -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia -ErrorAction Stop |
|
|
|
} |
|
|
|
catch |
|
|
|
{ |
|
|
|
Import-LocalizedData -BindingVariable Global:Localization -UICulture en-US -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia |
|
|
|
} |
|
|
|
|
|
|
|
<# |
|
|
|
.SYNOPSIS |
|
|
|