- Build single-source-of-truth 7-domain locale catalog (`locales/{zh-CN,en-US}/*.json`, 1,100+ keys) and `cmd/i18ngen` generator emitting Go catalogs and eager/lazy-split TypeScript domain modules (`core`/`vm` eager; `wizard`/`settings`/`plugins` lazy)
- Add zero-dependency ICU MessageFormat subset (`{var}`, `{n, number}`, CLDR `plural`, `select`), 8-hop cycle-free regional fallback (`zh-HK/zh-MO -> zh-Hant -> zh-TW -> zh-CN`), `auto` OS display-language preference, and `en-XA` pseudo-localization across Go and TypeScript
- Introduce `CodedError` supportability with `[E_CODE]` badges, collapsible `[detail]` diagnostics, and automatic SMC OSK / SMBIOS serial / MAC / token redaction
- Add Host × Guest macOS dual-terminology annotation (`FormatGuestTerm`) across 6 official Apple guest UI locales and localize Win32 system tray, file pickers, and DPI-adaptive `installguide` overlays with CJK font fallback probing
- Upgrade L1–L4 plugin localization to dual-track v2: Track A full language packs (`files`, WOFF2 `fonts`, cross-plugin `pluginOverrides`), Track B plugin-scoped `l10n` bundles (`HasUIMessages` isolation), live `plugin/localeChanged` notifications, `< 2ms` static CLI pack loading, and `reims-go plugin locale init|check` translator toolchain with `zh-TW` and `ja-JP` reference packs
- Harden security, WCAG 2.1 AA token contrast, `< 768px` responsive drawer & form layouts, and RTL logical properties; add backend security/locale regression tests and frontend `node --test` static/runtime guard suite in CI
# Conflicts:
# frontend/src/i18n.ts
# internal/cli/cli.go
# internal/i18n/i18n.go
69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
verify:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
cache-dependency-path: frontend/pnpm-lock.yaml
|
|
|
|
- name: Verify CHANGELOG.md matches current version
|
|
shell: pwsh
|
|
run: |
|
|
$ErrorActionPreference = 'Stop'
|
|
$verFile = Get-Content -Raw -LiteralPath 'internal/version/version.go'
|
|
if ($verFile -notmatch 'var\s+Version\s*=\s*"(v[^"]+)"') {
|
|
throw 'Could not parse Version from internal/version/version.go'
|
|
}
|
|
$ver = $Matches[1]
|
|
$tmp = Join-Path $env:RUNNER_TEMP "release-notes-$ver.md"
|
|
& ./scripts/build-release-notes.ps1 -Tag $ver -OutFile $tmp
|
|
Write-Host "PASS CHANGELOG.md contains valid release notes for $ver ($((Get-Item -LiteralPath $tmp).Length) bytes)"
|
|
|
|
- name: Frontend test & build
|
|
shell: pwsh
|
|
run: |
|
|
pnpm --dir frontend install --frozen-lockfile
|
|
pnpm --dir frontend test
|
|
pnpm --dir frontend build
|
|
|
|
- name: Debug workspace hygiene check & self-test
|
|
shell: pwsh
|
|
run: |
|
|
node scripts/debug/check.mjs
|
|
node --test scripts/debug/debug.test.mjs
|
|
|
|
- name: Go test & vet
|
|
shell: pwsh
|
|
run: |
|
|
go test ./...
|
|
go vet ./...
|
|
|
|
- name: Build reims-go.exe (window + command-line mode)
|
|
shell: pwsh
|
|
run: |
|
|
New-Item -ItemType Directory -Force -Path build/bin | Out-Null
|
|
go build -trimpath -tags desktop,production -ldflags "-H windowsgui" -o build/bin/reims-go.exe .
|
|
# Command-line mode must still answer through a pipe from the GUI-subsystem build.
|
|
$out = & build/bin/reims-go.exe version | Out-String
|
|
if ($LASTEXITCODE -ne 0 -or $out -notmatch '^reims-go ') { throw "reims-go.exe version failed: $out" }
|