# Discourse AI translations bug？

**URL:** <https://meta.discourse.org/t/discourse-ai-translations-bug/384214>\
**Category:** Product Support\
**Tags:** ai, dynaloc\
**Created:** [September 28, 2025, 12:13pm UTC](https://meta.discourse.org/t/discourse-ai-translations-bug/384214 "2025-09-28T12:13:14Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)\
**Post date:** [September 29, 2025, 2:13pm UTC](https://meta.discourse.org/t/discourse-ai-translations-bug/384214/10 "2025-09-29T14:13:01Z")

</div>

Interesting, can you run this [data explorer](https://meta.discourse.org/t/32566?silent=true) query?

```plaintext
-- [params]
-- integer :topic_id = 66

SELECT 
  a.id,
  a.created_at,
  a.response_tokens,
  (REGEXP_MATCH(a.raw_response_payload, '"text": "([^"\\]+)"'))[1] AS llm_detected_locale,
  a.raw_response_payload
FROM ai_api_audit_logs a
JOIN posts p ON p.id = a.post_id AND p.deleted_at IS NULL
LEFT JOIN topics t ON t.id = a.topic_id AND t.deleted_at IS NULL
WHERE t.id = :topic_id
AND p.post_number = 1
AND a.feature_name = 'translation'
AND a.response_tokens < 5

```

This should tell us what the LLM is actually returning.

If we’re seeing an “en” in the `llm_detected_locale` column, I suspect your site’s prompts for locale detection may need a change, or you can use a more suitable LLM (maybe `qwen`?)

---

_[View the full topic](https://meta.discourse.org/t/discourse-ai-translations-bug/384214)._
