discourse-translator/spec/services
Natalie Tay e635b47ca3
FIX: Set a stripped post's locale to site default locale (#212)
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.
2025-02-14 16:09:50 +08:00
..
discourse_ai FEATURE: Add DiscourseAi translator (#181) 2024-12-03 19:15:14 +08:00
problem_check FEATURE: Add ProblemCheck for google (#167) 2024-09-02 11:41:53 +08:00
amazon_spec.rb DEV: Move translation custom fields into their own tables (#201) 2025-02-10 12:29:07 +08:00
base_spec.rb FIX: Set a stripped post's locale to site default locale (#212) 2025-02-14 16:09:50 +08:00
discourse_ai_spec.rb DEV: Move translation custom fields into their own tables (#201) 2025-02-10 12:29:07 +08:00
google_spec.rb DEV: Hyphenate locales (#206) 2025-02-11 16:04:22 +08:00
libre_translate_spec.rb DEV: Autoload app files (#179) 2024-11-21 10:04:12 +08:00
microsoft_spec.rb DEV: Move translation custom fields into their own tables (#201) 2025-02-10 12:29:07 +08:00
yandex_spec.rb DEV: Move translation custom fields into their own tables (#201) 2025-02-10 12:29:07 +08:00