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.
20 lines
415 B
SCSS
20 lines
415 B
SCSS
[data-identifier="discourse-translator_language-switcher"]
|
|
.fk-d-menu__inner-content {
|
|
max-height: 50vh;
|
|
}
|
|
|
|
.topic-navigation.with-timeline .discourse-translator_toggle-original {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.topic-navigation.with-topic-progress
|
|
.discourse-translator_toggle-original
|
|
button {
|
|
height: 100%;
|
|
}
|
|
|
|
.discourse-translator_toggle-original {
|
|
button.active svg {
|
|
color: var(--tertiary);
|
|
}
|
|
}
|