mirror of
https://ghfast.top/https://github.com/discourse/discourse-translator.git
synced 2026-07-15 11:36:26 +08:00
This feature shows a fully translated topic in the user's language. For now, the topic needs to already have translations for the translated topic to show. If there are posts that have not been translated, the original content will be shown. The `translated_title` is returned via the `TopicViewSerializer` and displayed via the `applyTransformations` API. The `translated_cooked` is returned via the `PostSerializer` and displayed via `decorateCooked`. This takes a different approach from the previous PR https://github.com/discourse/discourse-translator/pull/199 which overrode the `fancy_title` and `cooked` directly. |
||
|---|---|---|
| .. | ||
| post-menu | ||
| language-switcher.gjs | ||
| show-original-content.gjs | ||
| translated-post.gjs | ||