discourse-translator/app/models
Natalie Tay 6c197c561d
DEV: Translate raw content instead of cooked content (#245)
Raw is in general much smaller than cooked. Cooked tends to have a lot of html when it includes things like pulled oneboxes, mentions, images.

The gigantic cooked content also increases the amount of time it takes to translate content.

In sending raw, we can cook the translated content after it returns from the API. This also helps with sanitisation.
2025-03-07 15:50:38 +08:00
..
concerns/discourse_translator DEV: Translate raw content instead of cooked content (#245) 2025-03-07 15:50:38 +08:00
discourse_translator FIX: 'Show original' button only shows in topics where there are translated content (#240) 2025-03-06 11:36:44 +08:00