Skip to content

Add native note translation with browser fallback#1091

Open
silentpatch-agent wants to merge 1 commit into
PrimalHQ:mainfrom
silentpatch-agent:feat/note-translation-1055
Open

Add native note translation with browser fallback#1091
silentpatch-agent wants to merge 1 commit into
PrimalHQ:mainfrom
silentpatch-agent:feat/note-translation-1055

Conversation

@silentpatch-agent

Copy link
Copy Markdown

Closes #1055.

Summary

  • add a Translate Note action to the note menu
  • use the native Android ACTION_TRANSLATE service when available
  • fall back to Google Translate with the note and current app language encoded in the URL
  • cover the native and fallback paths with Robolectric tests

This keeps translation provider-neutral on supported devices, requires no API key, and still works on older devices without a translation service.

Verification

  • ./gradlew :app:ktlintCheck
  • ./gradlew :app:detekt

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