Skip to content

feat(i18n): add notebook memory keys across locales - #43066

Closed
SaeedAqamiri wants to merge 2 commits into
anomalyco:devfrom
SaeedAqamiri:i18n-memory-keys
Closed

SaeedAqamiri wants to merge 2 commits into
anomalyco:devfrom
SaeedAqamiri:i18n-memory-keys

Conversation

@SaeedAqamiri

@SaeedAqamiri SaeedAqamiri commented Aug 17, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #43068 (notebook memory feature) — carries the locale keys for the memory feature separately so the core PR (#43058) stays reviewable.

Type of change

  • New feature

What does this PR do?

Adds command.session.record-notes(.description) (app) and ui.message.saveLearnings (ui) keys to all locale files. English is the source; fa/zh carry real translations; the remaining locales use English values, and the runtime already falls back to English via the { ...en, ...locale } merge.

How did you verify your code works?

  • bun typecheck green (app + ui).

Screenshots / recordings

N/A.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Aug 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Aug 17, 2026
@SaeedAqamiri SaeedAqamiri reopened this Aug 17, 2026
@SaeedAqamiri SaeedAqamiri changed the title chore(i18n): add notebook memory keys across locales feat(i18n): add notebook memory keys across locales Aug 17, 2026
@Enough1122

Copy link
Copy Markdown

AI code review — automated review for reference; please use your judgment.
Diff too large for automated review — recommend human review.

@Enough1122

Copy link
Copy Markdown

AI code review — automated review for reference; please use your judgment.

  • Consistency question: command.session.record-notes / .description are added verbatim in English to ~120 locale dicts (am, ar, az, bg, …) while fa is the only one I can spot with an actual translated string. If the others are placeholders, they'd be better omitted so the en-dict fallback applies (and future translation PRs don't need to touch 120 files); if they're meant to ship translated, most locales currently render English.
  • The fa translations look reasonable; per repo guidance, terminology ("سشن" for session) may warrant a native-speaker check.
  • Key placement is consistent (grouped with other command.session.* entries) across files — good mechanical hygiene.
  • No blocking issues found beyond the untranslated-copy question.

Add the command.session.record-notes and ui.message.saveLearnings keys to
all app and ui locale files (English fallback values, real translations in
fa/zh), so the save-learnings button and /save command never render a raw
key in any locale.
Only fa/zh carry real translations; the other locales kept English values
that are redundant with the en-dict fallback ({ ...en, ...locale }). Remove
them so new keys never render as stale English in non-en locales and future
translation work is unambiguous.
SaeedAqamiri added a commit to SaeedAqamiri/opencode that referenced this pull request Aug 23, 2026
Locale translations move to a separate PR (anomalyco#43066) to shrink the memory
PR diff; English keys remain because the app/ui i18n types derive from en
and the runtime merges { ...en, ...locale } with English as the fallback.
@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

@SaeedAqamiri

Copy link
Copy Markdown
Author

Still active. Addressed the review: the redundant English-placeholder keys were removed from the ~118 non-translated locales so the en-dict fallback applies, keeping only en/fa/zh (source + real translations). Part of the notebook memory proposal in #43068. Could a maintainer please reopen it for human review?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Per-folder notebook memory (notes_get/notes_commit) for the agent

2 participants