Skip to content

feat: add inline note translation - #1068

Open
sato820 wants to merge 4 commits into
PrimalHQ:mainfrom
sato820:codex/inline-note-translation-1055
Open

sato820 wants to merge 4 commits into
PrimalHQ:mainfrom
sato820:codex/inline-note-translation-1055

Conversation

@sato820

@sato820 sato820 commented Jun 30, 2026 •

Copy link
Copy Markdown

Closes #1055.

Summary

  • add an inline Translate control below note content
  • call a configurable LibreTranslate-compatible endpoint with optional API key and target language
  • preserve Nostr refs, URLs, lightning/bitcoin IDs, hashtags, and mentions while translating
  • cache translations locally by endpoint, target language, and note text hash
  • add a Translation settings screen to enable/disable the feature and edit endpoint/API key/language
  • let readers hide the translation without duplicating the original note

Verification

  • git diff --check
  • Local JVM/JUnit: four tests passed for cache scope and entity protection, including overlapping mentions, embedded mentions in links, repeated links, and literal placeholder text.
  • Android AOSP verification passed the filtered translation JVM test suite via the app Gradle task. The verification branch differs only in CI configuration and its Firebase fixture; this is not a full UI test.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Translate notes to user's preferred language

1 participant