Skip to content

Ukrainian wrongly translated "working" and "editing" messages #50651

Closed

Description

@seesmof

Description

When the model is working, the title "Writing" and "Ediitng" are wrongly translated in Ukrainian. Instead of saying "Writing" it says "Write", literally.

Plugins

None

OpenCode version

2.0.14

Steps to reproduce

  1. Open OpenCode.
  2. Set interface language as Ukrainian in Settings > Preferences > Language.
  3. Run the model and see the working steps.

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal, but didn't use it for this issue

Activity

  1. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the report! I can confirm this. In 2.0.14 the Ukrainian locale gives the edit and write tool steps the titles "Редагувати" and "Написати". Those are infinitives ("to edit" / "to write"), so in the session timeline they read as commands, not as a description of what the agent is doing. The noun form would fit, as the same locale already uses "Редагування" in the permissions settings.

    I checked this by running opencode serve from 2.0.14 and looking at the Ukrainian strings in the web UI it serves. The script below does this. Both strings are still unchanged on the latest dev (fa1260d). I couldn't open the desktop app UI itself here, so your screenshot is the visual confirmation.

    Your earlier PR #50646 was closed automatically because it didn't follow the PR template, not because of the change itself. If you'd like to try again, a new PR that follows the template and links this issue would be welcome.

    Reproduction script (check-uk-strings.sh)
    #!/usr/bin/env bash
    # Reproduction for #50651: the Ukrainian locale of the web/desktop UI labels the
    # edit/write tool steps with the infinitives "Редагувати" ("to edit") and
    # "Написати" ("to write") instead of activity nouns.
    #
    # Starts `opencode serve` (the server that hosts the web UI the desktop app uses),
    # crawls the JS chunks it serves, and prints the Ukrainian strings used as tool
    # step titles (ui.messagePart.title.edit / .write, rendered by
    # packages/session-ui/src/tools/tool-renderer.tsx).
    #
    # Usage: bun add -g @opencode/[email protected] && bash check-uk-strings.sh
    set -euo pipefail
    PORT=${PORT:-4599}
    DIR=$(mktemp -d)
    cd "$DIR"
    opencode --version
    opencode serve --hostname 127.0.0.1 --port "$PORT" >"$DIR/serve.log" 2>&1 &
    PID=$!
    trap 'kill $PID 2>/dev/null || true' EXIT
    for _ in $(seq 1 30); do curl -sf "http://127.0.0.1:$PORT/" >/dev/null && break; sleep 1; done
    
    python3 - "$PORT" <<'PY'
    import re, sys, urllib.request
    port = sys.argv[1]
    base = f"http://127.0.0.1:{port}"
    html = urllib.request.urlopen(base + "/").read().decode()
    queue = re.findall(r'/_assets/([\w.-]+\.js)', html)
    seen = set()
    found = False
    while queue:
        f = queue.pop()
        if f in seen:
            continue
        seen.add(f)
        try:
            s = urllib.request.urlopen(f"{base}/_assets/{f}").read().decode("utf8", "ignore")
        except Exception:
            continue
        for key in ("ui.messagePart.title.edit", "ui.messagePart.title.write"):
            for m in re.finditer(re.escape(key) + r'"\s*:\s*[`"\']([^`"\']*)', s):
                if re.search(r'[\u0400-\u04FF]', m.group(1)) and f.startswith("uk-"):
                    print(f"{f}: {key} = {m.group(1)}")
                    found = True
        queue += [m for m in re.findall(r'([\w.-]+\.js)', s) if m not in seen]
    print(f"crawled {len(seen)} chunks")
    sys.exit(0 if found else 1)
    PY

    Run it: bash check-uk-strings.sh

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions