Download tools/localisation.ps1 from raincandy-u/Ab-Integro: direct link, hf CLI and curl.
- Browser
- Download file 516 Bytes
-
https://huggingface.co/datasets/raincandy-u/Ab-Integro/resolve/main/tools/localisation.ps1
- Command line
-
hf download hf://datasets/raincandy-u/Ab-Integro/tools/localisation.ps1
-
curl -L -o localisation.ps1 https://huggingface.co/datasets/raincandy-u/Ab-Integro/resolve/main/tools/localisation.ps1
516 Bytes
| param( | |
| [Parameter(Position = 0)] | |
| [ValidateSet("build", "source", "check")] | |
| [string]$Command = "build", | |
| [Parameter(Position = 1)] | |
| [ValidateRange(1, 64)] | |
| [int]$Jobs = [Math]::Min([Math]::Max([Environment]::ProcessorCount - 1, 1), 8) | |
| ) | |
| if ($Command -eq "check") { | |
| Write-Error "Use node tools/validate.mjs" | |
| exit 1 | |
| } | |
| $ErrorActionPreference = "Stop" | |
| $script = Join-Path $PSScriptRoot "localisation.mjs" | |
| & node $script $Command --jobs $Jobs | |
| if ($LASTEXITCODE -ne 0) { | |
| throw "Localisation '$Command' failed." | |
| } | |