feat(docs): add Thai translation support

This commit is contained in:
Peter Steinberger
2026-04-23 06:22:35 +01:00
parent ebf351b138
commit 6b126cd0de
4 changed files with 89 additions and 1 deletions

View File

@@ -31,7 +31,8 @@ jobs:
translate-tr-release \
translate-uk-release \
translate-id-release \
translate-pl-release
translate-pl-release \
translate-th-release
do
gh api repos/openclaw/docs/dispatches \
--method POST \

View File

@@ -0,0 +1,78 @@
[
{
"source": "ACP",
"target": "ACP"
},
{
"source": "Active Memory",
"target": "Active Memory"
},
{
"source": "ClawHub",
"target": "ClawHub"
},
{
"source": "CLI",
"target": "CLI"
},
{
"source": "Compaction",
"target": "Compaction"
},
{
"source": "Cron",
"target": "Cron"
},
{
"source": "Dreaming",
"target": "Dreaming"
},
{
"source": "Gateway",
"target": "Gateway"
},
{
"source": "Heartbeat",
"target": "Heartbeat"
},
{
"source": "Mintlify",
"target": "Mintlify"
},
{
"source": "Node",
"target": "Node"
},
{
"source": "OpenClaw",
"target": "OpenClaw"
},
{
"source": "Pi",
"target": "Pi"
},
{
"source": "Plugin",
"target": "Plugin"
},
{
"source": "Skills",
"target": "Skills"
},
{
"source": "Tailscale",
"target": "Tailscale"
},
{
"source": "TaskFlow",
"target": "TaskFlow"
},
{
"source": "TUI",
"target": "TUI"
},
{
"source": "Webhook",
"target": "Webhook"
}
]

View File

@@ -17,6 +17,8 @@ func prettyLanguageLabel(lang string) string {
return "Simplified Chinese"
case strings.EqualFold(trimmed, "ja-JP"):
return "Japanese"
case strings.EqualFold(trimmed, "th"):
return "Thai"
case strings.EqualFold(trimmed, "uk"):
return "Ukrainian"
default:

View File

@@ -101,6 +101,13 @@ const GENERATED_LOCALES = [
tmFile: "pl.tm.jsonl",
navMode: "clone-en",
},
{
language: "th",
dir: "th",
navFile: "th-navigation.json",
tmFile: "th.tm.jsonl",
navMode: "clone-en",
},
];
function parseArgs(argv) {