Skip to content

Localisation: translation service and first language #1130

Done

Description

@ivanfenenko

Both apps ship in more than English, and translators have a path to contribute.

Follow-up to #886, which made both apps translatable: UI text comes from Localizable.xcstrings and res/values/strings.xml with matching keys, dates and numbers follow the reader's locale, right-to-left and long text lay out correctly, and CI fails on hardcoded text (#1129).

Approach

Unchanged from #886: Crowdin through its free open-source license (reads Android XML and Xcode String Catalogs, opens translation pull requests through its GitHub app, includes machine translation). Fallback: Tolgee. Not Weblate while it can't read String Catalogs (WeblateOrg/weblate#10848). Seed the glossary from CONTEXT.md so product terms translate consistently.

Acceptance

  • At least one non-English language ships on both platforms, reviewed by a native speaker.
  • Translations arrive as pull requests from the translation service.
  • CI fails on missing or stale translations: Android MissingTranslation is an error, and untranslated or stale iOS catalog entries are flagged.
  • A short contributor note explains how to translate.

Remaining

  • Apply for the Crowdin open-source license and connect its GitHub app (fall back to Tolgee if refused or ineligible). Open points from the draft application: the community-size criterion, a news feed (GitHub Releases notes), approved-only export, region-free language codes.
  • Contributor how-to-translate note once the service is connected
  • Ship the first non-English language
  • Make Android MissingTranslation an error and flag untranslated or stale iOS catalog entries in CI
  • Pseudo-locale snapshot runs (iOS double-length and right-to-left, Android en-XA / ar-XB) on the main screens
  • Key Server Health duration units ("4.2 s", "12 m", "2 h 18 m", "3 d 4 h", "N ms") on both platforms, like the thought duration keys
  • Decide and key, or document as verbatim on purpose:
    • Titles sent to the server: "New Session" placeholder, "Forked session"
    • Upload file names: "Pasted image N.png", "Attachment"
    • Tool and file labels: "Shell", the patch path "File", "Plain text"
    • Kit defaults: the "Default" variant and the "Server" profile name, secure credential store errors, "Folder not found: …"
    • Repository "not available" errors behind capability checks
  • Localised store listings and screenshots ([ASO] Localize store listing text (check GA4 country split first) #915; follow-up to Store Screenshots: App Store Connect upload script #840)

Activity

  1. added
    enhancement
    ios
    android
    backlog
    priority: low
    on Nov 28, 2026
  2. added 4 commits that reference this issue on Nov 28, 2026
  3. ivanfenenko commented on Nov 28, 2026

    @ivanfenenko
    CollaboratorAuthor

    Adding new copy in a feature

    Updated: translation now happens in the session working on the feature, through the translate skill (.agents/skills/translate/SKILL.md). The script calls no model and starts no server. Details: docs/translating.md.

    1. Add the English on both platforms

    • Android: android/app/src/main/res/values/strings.xml
    • iOS: ios/OpenCode Mobile/OpenCode Mobile/Localizable.xcstrings

    Use matching keys (area.name on iOS, area_name on Android). When the key doesn't make the text's role obvious, write one sentence above the Android string or in the catalog comment saying what it is and what each placeholder holds, for example <!-- Button on the archive dialog. %1$s is the session title. -->. The translator reads these notes.

    2. Translate with the skill

    Hand the translation step to one fresh subagent (Sonnet is enough): "Load the translate skill and translate the app's missing strings." A long feature session would re-send its whole context on every turn; translating needs only the strings and their notes. The subagent:

    node scripts/translate.mjs tasks                      # writes small tasks and prints them when small
    # writes every answer in one turn, looking up context only where a string is unclear (scripts/l10n/lookup.mjs)
    node scripts/l10n/check-answer.mjs <task folder>      # 0 errors; hints weighed
    node scripts/translate.mjs apply <task folder>        # checks again, writes both apps, runs check-translations

    About four turns for a small change. One new string in all 56 languages is 6 tasks, about 10k characters. Many tasks (a big feature, a new language) fan out to one subagent per task.

    3. Commit with the feature

    values-*/strings.xml, Localizable.xcstrings, InfoPlist.xcstrings (permission prompts) and l10n/source-hashes.json. The String Checks workflow fails a pull request with a missing translation, one made from older English, or a broken placeholder.

    Changing existing text

    • Meaning changed: the key is stale, and tasks includes it in every language. A change of meaning with little change to the text: tasks --redo <key>.
    • Typo fix with the same meaning: node scripts/translate.mjs accept <key> keeps the translations.
    • A bad translation: edit values-<code>/strings.xml and the catalog entry by hand, or tasks --review --keys <key>.

    Without an agent, push the English only and say so in the pull request; a maintainer translates before merge. Hex Code isn't translated yet.

  4. added 3 commits that reference this issue on Nov 28, 2026
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

    androidbacklogenhancementiospriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions