Skip to content

Commit

Permalink
better locale missing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Jul 17, 2024
1 parent 46b4445 commit d6b952a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ps12exe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,16 @@ function RollUp {
}
}
}
#_if PSScript
$LocaleLoaderArg = @{ Localize = $Localize }
if($nested){ $LocaleLoaderArg.FaildLoadLocaleData = {} }
#_endif
$LocalizeData =
#_if PSScript
. $PSScriptRoot\src\LocaleLoader.ps1 -Localize $Localize
. $PSScriptRoot\src\LocaleLoader.ps1 @LocaleLoaderArg
#_else
#_include "$PSScriptRoot/src/locale/en-UK.ps1"
#_endif
#_if PSScript
if (!$LocalizeData.CompilingI18nData) { $LocalizeData.CompilingI18nData = @{} }
#_endif
function Show-Help {
. $PSScriptRoot\src\HelpShower.ps1 -HelpData $LocalizeData.ConsoleHelpData | Write-Host
}
Expand Down

0 comments on commit d6b952a

Please sign in to comment.