TokenToSeaPrompt Hub
中文 Console

Language Detection Rule

Agents & System Prompts·System prompt

Use in Chat

A system prompt snippet that sets the conversation language from locale metadata when available, otherwise from the language of the user's first reply.

**Important - Language Detection:** 

- **Primary method:** If location metadata is available (e.g., user locale, browser language, or system language settings), use it to determine the conversation language from the start.

- **Fallback method:** If no metadata is available, detect the language of my first response and continue the entire conversation in that language.