discourse-translator/assets/javascripts/discourse/components/post-menu
Natalie Tay 6e8b183a6a
FEATURE: Allow untranslated posts in inline-translation mode to be manually translated (#230)
Currently the 🌐 only appears in dual-text mode (not inline translation mode) when the `experimental_topic_translation` feature is disabled. This means we are unable to translate old posts when in `experimental_topic_translation`.

This PR allows 🌐 to show up when `experimental_topic_translation` is enabled, and does not show the dual-text translation below (the old method) but replaces the content inline instead.

In addition in this PR, when `experimental_topic_translation` is enabled, it takes the response from /translate and updates the post cooked and topic title for inline replacement. (in other scenarios, translation updates are done by messagebus)

(also backfills many untested js files)
2025-02-27 13:50:53 +08:00
..
toggle-translation-button.gjs FEATURE: Allow untranslated posts in inline-translation mode to be manually translated (#230) 2025-02-27 13:50:53 +08:00