We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9760887 commit 7607b46Copy full SHA for 7607b46
app/services/discourse_translator/base.rb
@@ -32,7 +32,7 @@ def self.translate(topic_or_post)
32
return if text_for_translation(topic_or_post).blank?
33
detected_lang = detect(topic_or_post)
34
35
- return detected_lang, get_text(topic_or_post) if (detected_lang&.to_s.eql? I18n.locale.to_s)
+ return detected_lang, get_text(topic_or_post) if (detected_lang&.to_s == I18n.locale.to_s)
36
unless translate_supported?(detected_lang, I18n.locale)
37
raise TranslatorError.new(
38
I18n.t(
0 commit comments