Skip to content

docs(i18n): sync max_tokens configuration docs to ja, ru, zh #763

Closed

Description

@lizhengfeng101

Description

PR #716 added documentation for the new --max-tokens flag and max_tokens config setting but only updated the English versions. The Japanese, Russian, and Chinese translations need the same content added.

Changes that need syncing

cli-reference.md — one new table row after --max-tools:

| `--max-tokens <n>` | — | config or template default | Per-file prompt token ceiling. Overrides the saved `max_tokens` setting for this run. |

configuration.md — a new "Per-file prompt limit" section (inserted after the timeout section, before "Verify connectivity"):

### Per-file prompt limit

OCR defaults to a 58,888-token prompt ceiling for each file review. Increase
it for a model with a larger context window by saving `max_tokens`:

\`\`\`bash
ocr config set max_tokens 200000
\`\`\`

The setting applies to both `ocr review` and `ocr scan`. Use `--max-tokens`
for a one-off override without changing the saved configuration:

\`\`\`bash
ocr review --max-tokens 200000
ocr scan --max-tokens 200000
\`\`\`

The per-run flag takes precedence over `max_tokens`; when neither is set, OCR
uses the embedded task-template default. This limit is per file and is
independent of both the model's output-token cap and `--max-tokens-budget`,
which caps total token use for a run. Restore the embedded default with
`ocr config unset max_tokens`.

Scope

  • Files:
    • pages/src/content/docs/ja/cli-reference.md
    • pages/src/content/docs/ja/configuration.md
    • pages/src/content/docs/ru/cli-reference.md
    • pages/src/content/docs/ru/configuration.md
    • pages/src/content/docs/zh/cli-reference.md
    • pages/src/content/docs/zh/configuration.md
  • Area: documentation / i18n

Acceptance Criteria

  • Each language's cli-reference.md has the --max-tokens row translated and inserted in the same position as the English version
  • Each language's configuration.md has the "Per-file prompt limit" section translated and inserted in the same position as the English version
  • Code blocks (commands, flag names) remain unchanged — only prose is translated
  • make check passes

Context

Introduced via #716 (merged 2026-08-07). The PR only touched pages/src/content/docs/en/. Per project convention, docs changes must be synced to all localized versions.

Activity

  1. added
    documentation
    good first issue
    i18n
    on Aug 7, 2026
  2. wu21-web commented on Aug 7, 2026

    @wu21-web
    Contributor

    @lizhengfeng101 Thanks. Do you require all markdowns to be humanly translated?

  3. lizhengfeng101 commented on Aug 7, 2026

    @lizhengfeng101
    ContributorAuthor

    @lizhengfeng101 Thanks. Do you require all markdowns to be humanly translated?

    @wu21-web Unnecessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issuei18n

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions