Optional language catalogs for WinuxCmd. The core executable keeps English as
the default and loads a catalog only when WINUX_LANG is set.
Install the winuxcmd-i18n-zh-cn package through WPM, then run:
export WINUX_LANG=zh-CN
winuxcmd ls --helpTo make the language selection persistent for future Windows processes, use
the built-in Windows setx.exe command:
setx WINUX_LANG zh-CNOpen a new terminal after running setx; existing processes keep their current
environment. To disable catalog loading persistently, run:
setx WINUX_LANG offCatalogs are installed below .wpm/i18n/<locale>/catalog.json. Missing keys
fall back to the English text compiled into WinuxCmd.
Translations are reviewed artifacts. Automated or model-generated translations are drafts and must be checked before release.
Translations ship to users as the winuxcmd-i18n-zh-cn WPM package, so a
catalog change that is never released never reaches anyone. The rules below
are enforced by CI, not by memory:
- The
VERSIONfile (single line, e.g.0.4.0) is the release version. - Any change under
catalogs/MUST bumpVERSION(at least the patch segment) in the same PR. TheVersion bump guardworkflow fails the PR otherwise. Versions only move forward. - Merging a new
VERSIONtomainautomatically:- tags
v<VERSION>and publisheswinuxcmd-i18n-zh-cn.zipas a GitHub release (zip layout:zh-CN/catalog.json), - opens an automated PR on
unixwin/wpm-sourcethat refreshes thewinuxcmd-i18n-zh-cnindex entry (version, URL, SHA-256, size).
- tags
- After that PR merges, users get the update via
wpm index updateandwpm install winuxcmd-i18n-zh-cn. - The automated
en-US/sync from the WinuxCmd release workflow does not require a bump: that directory is a reference extract and is not packaged.
The WPM_SOURCE_TOKEN repository secret must hold a token with write access
to unixwin/wpm-source; without it the release still publishes but the index
update must be done by hand.