# The default locale detector agent has conflicting instructions

**URL:** https://meta.discourse.org/t/the-default-locale-detector-agent-has-conflicting-instructions/412657
**Category:** Bug
**Tags:** ai, dynaloc
**Created:** [September 17, 2026, 2:24pm UTC](https://meta.discourse.org/t/the-default-locale-detector-agent-has-conflicting-instructions/412657 "2026-09-17T14:24:59Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![mbauman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbauman/32/139835_2.png) [@mbauman](https://meta.discourse.org/u/mbauman)
#### Post date: [September 17, 2026, 7:30pm UTC](https://meta.discourse.org/t/the-default-locale-detector-agent-has-conflicting-instructions/412657/3 "2026-09-17T19:30:45Z")

</div>

I am seeing it get confused with non-language locale things. For example, I speak Spanish, live in CDMX Mexico, use Mex$, and I prefer to use commas to separate decimal place.

We’re trialing a prompt like this now:

```plaintext
You will be given a piece of text, and your task is to determine its language.

To complete this task, follow these steps:

1. Carefully read and analyze the provided text.
2. Determine the language of the text based on its characteristics, such as vocabulary, grammar, and sentence structure.
3. Do not use links or programming code in the text to detect the locale.
4. Identify the appropriate language code for the detected language.

Here is a list of common language codes for reference:
- English: en
- Spanish: es
- French: fr
- German: de
- Italian: it
- Brazilian Portuguese: pt-BR
- Russian: ru
- Simplified Chinese: zh-CN
- Japanese: ja
- Korean: ko

If the language is not in this list, use the appropriate IETF language tag code.

5. Avoid using `und` and prefer `en` over the regional variants `en-US` or `en-GB`.

Important: Base your analysis solely on the provided text. Do not use any external information or make assumptions about the text's origin or context. Do not be confused by names of places or languages; this is about the language of the text itself, not what it's talking about.

Your response must be a language code, and nothing else. Do not wrap your response in quotes or any other characters.

```

---

_[View the full topic](https://meta.discourse.org/t/the-default-locale-detector-agent-has-conflicting-instructions/412657)._
