Skip to content

Conversation

tomayac
Copy link

@tomayac tomayac commented Sep 24, 2025

This PR adds native translation support based on the Translator API that shipped in Chrome 138 as a progressive enhancement. On non-supporting browsers, the current behavior of linking to Google Translate is maintained.

The original post from the examples below was written in English and translated to German.

Translating a post with the Translate button

This shows the translation in lieu of the original text, with the option to toggle back to the original.

Screenshot 2025-09-24 at 12 18 40 Screenshot 2025-09-24 at 12 09 02

Translating a post with the Translate post menu item:

This opens a modal dialog with the translation.

Screenshot 2025-09-24 at 12 17 19 Screenshot 2025-09-24 at 12 13 40

Translating a direct message with the Translate message menu item:

Since this all happens on the client-side, this is a huge privacy win, and compatible with end-to-end encrypted DMs.

Screenshot 2025-09-24 at 12 16 01 Screenshot 2025-09-24 at 12 15 36

@tomayac
Copy link
Author

tomayac commented Sep 25, 2025

FYI @mozzius who seems to have touched the translation hook recently.

@tomayac
Copy link
Author

tomayac commented Oct 1, 2025

@mozzius Made the linter happy, so the next time you (someone) approves the workflows to run, it should hopefully be all green. Anything else I could do to make this move forward?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant