Checklist
Which category best fits this feature request?
Integration with other apps
Is your feature request related to a problem? Please describe.
Many users subscribe to international RSS feeds but often encounter articles written in languages they don't fully understand. Currently, users have to leave the app and copy-paste the text into an external translation app or browser, which breaks the seamless reading experience.
Describe the solution you'd like
Technical Implementation Thoughts
Since RSS content is rendered in HTML, passing raw strings to ML Kit would break the tags (e.g., <p>, <a>, <img>).
My proposed workflow:
- Add a "Translate" button/icon in the article view's bottom or top app bar.
- When triggered, parse the article's HTML (using Jsoup or the app's existing parser).
- Extract only the text nodes, pass them to ML Kit.
- Reconstruct the translated text nodes back into the DOM without altering the original HTML structure and image tags.
- Re-render the translated HTML.
Questions for Maintainers
Before I start working on this and open a Pull Request, I'd love to hear your thoughts:
- Are you open to adding
com.google.mlkit:translate as a dependency?
- Where would you prefer the "Translate" button to be placed in the UI (e.g., article overflow menu, top bar)?
- Any specific architectural guidelines I should follow for this implementation?
Looking forward to contributing!
Related links
No response
Checklist
Which category best fits this feature request?
Integration with other apps
Is your feature request related to a problem? Please describe.
Many users subscribe to international RSS feeds but often encounter articles written in languages they don't fully understand. Currently, users have to leave the app and copy-paste the text into an external translation app or browser, which breaks the seamless reading experience.
Describe the solution you'd like
Technical Implementation Thoughts
Since RSS content is rendered in HTML, passing raw strings to ML Kit would break the tags (e.g.,
<p>,<a>,<img>).My proposed workflow:
Questions for Maintainers
Before I start working on this and open a Pull Request, I'd love to hear your thoughts:
com.google.mlkit:translateas a dependency?Looking forward to contributing!
Related links
No response