diff --git a/scripts/docs-i18n/doc_mode_test.go b/scripts/docs-i18n/doc_mode_test.go index e87438729a42..209302958d7c 100644 --- a/scripts/docs-i18n/doc_mode_test.go +++ b/scripts/docs-i18n/doc_mode_test.go @@ -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) } } diff --git a/scripts/docs-i18n/prompt.go b/scripts/docs-i18n/prompt.go index 24026cc238da..d8eb19e3049e 100644 --- a/scripts/docs-i18n/prompt.go +++ b/scripts/docs-i18n/prompt.go @@ -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.`, diff --git a/scripts/docs-i18n/prompt_test.go b/scripts/docs-i18n/prompt_test.go index 94e7f68702aa..e71b83dec63a 100644 --- a/scripts/docs-i18n/prompt_test.go +++ b/scripts/docs-i18n/prompt_test.go @@ -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"}}, diff --git a/scripts/docs-i18n/util.go b/scripts/docs-i18n/util.go index 4160e996a23f..8e6d9bc41b0c 100644 --- a/scripts/docs-i18n/util.go +++ b/scripts/docs-i18n/util.go @@ -12,7 +12,7 @@ import ( const ( workflowVersion = 16 - promptVersion = 14 + promptVersion = 15 docsI18nEngineName = "codex" envDocsI18nProvider = "OPENCLAW_DOCS_I18N_PROVIDER" envDocsI18nModel = "OPENCLAW_DOCS_I18N_MODEL" diff --git a/scripts/docs-i18n/util_test.go b/scripts/docs-i18n/util_test.go index 65fd7db6068c..259f99b05a8a 100644 --- a/scripts/docs-i18n/util_test.go +++ b/scripts/docs-i18n/util_test.go @@ -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()) } }