Skip to content

feat: Add translate notes feature - #1120

Open
johnson251718-Agent wants to merge 1 commit into
PrimalHQ:mainfrom
johnson251718-Agent:feature/note-translation
Open

johnson251718-Agent wants to merge 1 commit into
PrimalHQ:mainfrom
johnson251718-Agent:feature/note-translation

Conversation

@johnson251718-Agent

Copy link
Copy Markdown

Summary

This PR implements the note translation feature requested in #1055.

Changes

  • TranslationService.kt: New service using LibreTranslate API (free, no API key required)
  • TranslationPreferences.kt: Local storage for user's target language preference
  • TranslationSettingsScreen.kt: Settings page for language selection
  • NoteDropdownMenu.kt: Added Translate menu option
  • NoteContract.kt: Added translation state and events
  • NoteViewModel.kt: Added translateNote() handler
  • TranslationDialogs.kt: Loading, success, and error dialogs for translation

Features

  • Translate button in note context menu
  • Auto-detect source language
  • 11 target languages (EN, ES, FR, DE, IT, PT, ZH, JA, KO, RU, AR)
  • User-configurable target language in Settings
  • Uses device locale as default
  • Loading indicator while translating
  • Copy translated text to clipboard

Screenshots

(Settings and Translation UI follow the existing app design patterns)

Note

Similar implementation to iOS PR PrimalHQ/primal-ios-app#229

Closes #1055

- Add TranslationService using LibreTranslate API (free, no API key)
- Add Translation settings page for target language selection
- Add Translate option in note context menu
- Support 11 target languages (EN, ES, FR, DE, IT, PT, ZH, JA, KO, RU, AR)
- Uses device locale as default target language
- Auto-detect source language

Closes PrimalHQ#1055
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