fix(docs): keep Dutch address informal

This commit is contained in:
Peter Steinberger
2026-07-12 05:55:02 -04:00
parent 842f8f3ee9
commit 5fe350c668
5 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -2027,8 +2027,8 @@ func TestProcessFileDocUsesFieldLevelFrontmatterTranslation(t *testing.T) {
if !strings.Contains(text, "在 Fly.io 上部署 OpenClaw") {
t.Fatalf("expected translated read_when entry in output:\n%s", text)
}
if !strings.Contains(text, "prompt_version: 14") {
t.Fatalf("expected prompt version 14 in output metadata:\n%s", text)
if !strings.Contains(text, "prompt_version: 15") {
t.Fatalf("expected prompt version 15 in output metadata:\n%s", text)
}
}
+1 -1
View File
@@ -88,7 +88,7 @@ var localeRules = map[string]string{
"vi": `Locale rules:
- Write standard Vietnamese in a neutral technical tone. Use “bạn” consistently when direct address is necessary and avoid unnecessary English outside protected terms.`,
"nl": `Locale rules:
- Write standard Dutch in a concise, neutral technical tone. Keep forms of address consistent and avoid unnecessary English outside protected terms.`,
- Write standard Dutch in a concise, neutral technical tone. Use informal “je/jouw” consistently for direct address; do not switch to formal “u/uw” except inside protected literal quotations. Avoid unnecessary English outside protected terms.`,
"fa": `Locale rules:
- Write standard Iranian Persian in a neutral technical tone. Use Persian ی and ک rather than Arabic ي and ك, and use standard Persian half-spaces where required.
- Keep prose naturally right-to-left without reordering or altering left-to-right code, commands, URLs, placeholders, or product names.`,
+1
View File
@@ -144,6 +144,7 @@ func TestTranslationPromptAddsRepresentativeLocaleRules(t *testing.T) {
{locale: "ja-JP", wants: []string{"technical Japanese", "〜でございます", "「 and 」"}},
{locale: "de", wants: []string{"Sie/Ihr/Ihnen", "du/dein/dir"}},
{locale: "pt-BR", wants: []string{"Brazilian Portuguese, not European Portuguese"}},
{locale: "nl", wants: []string{"Use informal “je/jouw” consistently", "do not switch to formal “u/uw” except inside protected literal quotations"}},
{locale: "fa", wants: []string{"Persian ی and ک", "right-to-left"}},
{locale: "uk", wants: []string{"Ukrainian terminology rather than Russian calques"}},
{locale: "th", wants: []string{"Do not insert spaces between every Thai word"}},
+1 -1
View File
@@ -12,7 +12,7 @@ import (
const (
workflowVersion = 16
promptVersion = 14
promptVersion = 15
docsI18nEngineName = "codex"
envDocsI18nProvider = "OPENCLAW_DOCS_I18N_PROVIDER"
envDocsI18nModel = "OPENCLAW_DOCS_I18N_MODEL"
+1 -1
View File
@@ -8,7 +8,7 @@ import (
func TestCacheNamespaceIncludesPromptVersion(t *testing.T) {
t.Parallel()
if want := "prompt=14"; !strings.Contains(cacheNamespace(), want) {
if want := "prompt=15"; !strings.Contains(cacheNamespace(), want) {
t.Fatalf("expected cache namespace to contain %q, got %q", want, cacheNamespace())
}
}