mirror of
https://ghfast.top/https://github.com/discourse/discourse-translator.git
synced 2026-07-16 11:46:33 +08:00
In posts where there is a just an image, the stripped text that is sent for locale detection can be ... ``` <p></p> ``` ... as we do not send HTML for the image for locale detection. The stripped text would result in a `""` returned for detected locale, which would result in ``` Detected locale can't be blank ``` This commit defaults the post to the site's locale. This is needed so that we do not keep sending the post to check the locale. |
||
|---|---|---|
| .. | ||
| discourse_ai | ||
| problem_check | ||
| amazon_spec.rb | ||
| base_spec.rb | ||
| discourse_ai_spec.rb | ||
| google_spec.rb | ||
| libre_translate_spec.rb | ||
| microsoft_spec.rb | ||
| yandex_spec.rb | ||