Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ Direct `dotnet build` without the script will fail with "WindowsAppSDKSelfContai
|----------|---------|
| `OPENCLAW_FORCE_ONBOARDING=1` | Show onboarding wizard even if a token already exists |
| `OPENCLAW_SKIP_UPDATE_CHECK=1` | Skip the update dialog (useful during testing) |
| `OPENCLAW_LANGUAGE=fr-fr` | Override UI language (validated: en-us, fr-fr, nl-nl, zh-cn, zh-tw) |
| `OPENCLAW_LANGUAGE=fr-fr` | Override UI language (validated: en-us, fr-fr, nl-nl, pt-br, zh-cn, zh-tw) |
| `OPENCLAW_GATEWAY_PORT=19001` | Override default gateway port for local dev |
| `OPENCLAW_VISUAL_TEST=1` | Enable automatic screenshot capture on page transitions |
| `OPENCLAW_VISUAL_TEST_DIR=path` | Output directory for visual test screenshots |
Expand Down
3 changes: 2 additions & 1 deletion docs/LOCALIZATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ OpenClaw Tray uses WinUI `.resw` resource files for localization. Windows automa
| English (US) | `en-us` | `Strings/en-us/Resources.resw` |
| French (France) | `fr-fr` | `Strings/fr-fr/Resources.resw` |
| Dutch (Netherlands) | `nl-nl` | `Strings/nl-nl/Resources.resw` |
| Brazilian Portuguese | `pt-br` | `Strings/pt-br/Resources.resw` |
| Chinese (Simplified) | `zh-cn` | `Strings/zh-cn/Resources.resw` |
| Chinese (Traditional) | `zh-tw` | `Strings/zh-tw/Resources.resw` |

Expand Down Expand Up @@ -71,7 +72,7 @@ Windows picks the language automatically based on the user's OS display language
Set the `OPENCLAW_LANGUAGE` environment variable before launching the app:

```powershell
$env:OPENCLAW_LANGUAGE = "fr-fr" # or nl-nl, zh-cn, zh-tw
$env:OPENCLAW_LANGUAGE = "fr-fr" # or nl-nl, pt-br, zh-cn, zh-tw
.\run-app-local.ps1 -NoBuild
```

Expand Down
2 changes: 1 addition & 1 deletion src/OpenClaw.Tray.WinUI/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public App()
if (!string.IsNullOrEmpty(langOverride))
{
// SECURITY: Whitelist known locale codes to prevent locale injection
string[] allowedLocales = ["en-us", "fr-fr", "nl-nl", "zh-cn", "zh-tw"];
string[] allowedLocales = ["en-us", "fr-fr", "nl-nl", "zh-cn", "zh-tw", "pt-br"];
if (allowedLocales.Contains(langOverride.ToLowerInvariant()))
LocalizationHelper.SetLanguageOverride(langOverride);
else
Expand Down
Loading