mirror of
https://ghfast.top/https://github.com/discourse/discourse-translator.git
synced 2026-07-16 11:46:33 +08:00
Currently, the button above shows up even when there are no posts translated. With this commit, we will not show the button if there are zero posts in the topic that is translated. This commit also - only returns translations of supported languages (in SiteSetting.automatic_translation_target_languages) - optimises loading translations when the feature is enabled under certain circumstances |
||
|---|---|---|
| .. | ||
| post_locale.rb | ||
| post_translation.rb | ||
| topic_locale.rb | ||
| topic_translation.rb | ||