Skip to content

Conversation

@nattsw
Copy link
Contributor

@nattsw nattsw commented Mar 6, 2025

This PR requires #244 to be merged first.

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.

@nattsw nattsw marked this pull request as draft March 6, 2025 13:53
@nattsw nattsw marked this pull request as ready for review March 7, 2025 07:48
@nattsw nattsw merged commit 6c197c5 into main Mar 7, 2025
6 checks passed
@nattsw nattsw deleted the translate-raw branch March 7, 2025 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants