How to translate content with a prompt
AI providers allows to translate your existing data in the fields to another language. You need to create a corresponding propmpt in AI Assistant for translating purposes.
- When creating a Prompt, specify in which language you want to receive the response.
- Create a separate Prompt in which you ask to translate an existing text to another language (similar to how Fix Grammar prompt).
- Write the question in the language you want to receive the answer. For example, if you want to translate from English to German - write the prompt in German. (Before using this case, please check that your AI provider support required languages: OpenAI supported languages, Claude supported languages, Gemini supported languages.)
- Use the
{{ store.locale }}
variable, which returns the target Store View’s locale label (e.g.,English (United States)
,German (Germany)
,French (France)
). The store context always comes from the target Store where the prompt runs—regardless of Get Variables’ Values From. This lets you keep one universal prompt that translates into each Store’s locale. In Automation Rules, select specific Store Views.