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).python_info Write-Host $info.warn -f red Write-Host $info.tip -f Yellow |