warn.ps1

$lang = (Get-WinSystemLocale).name
if ($lang -notin @('zh-CN', 'en-US')) {
    $lang = 'en-US'
}
$json = $PSScriptRoot + '\json\' + $lang + '.json'
$info = (Get-Content -Raw -Path  $json -Encoding UTF8 | ConvertFrom-Json).pnpm_info

Write-Host $info.warn -f red
Write-Host $info.tip -f Yellow