Learning Commands · System

/lang command

Set the session language for all AI-generated content

1 min read

Set the session language for all AI-generated content

At a glance

Field Value
Command /lang
Usage `/lang [--first=] [--second=] [--mode=term
Category system
Execution client
Context none
Response type markdown

Examples

/lang --first=vi
/lang --second=en
/lang --first=en --second=vi
/lang --first=en --second=vi --mode=term
/lang --first=en --second=vi --mode=full

How it works

Set the session language for all AI-generated content.

Single language (only one specified, or both the same):

  • /lang --first=vi — All content in Vietnamese
  • /lang --second=en — All content in English
  • /lang --first=en --second=en — All content in English

Bilingual mode (two different languages):

  • /lang --first=en --second=vi — English with Vietnamese terms in parentheses (default: term mode)
  • /lang --first=en --second=vi --mode=term — Technical terms translated in parentheses
  • /lang --first=en --second=vi --mode=full — Full bilingual with alternating paragraphs

Supported languages: en, vi, fr, zh, de, ja, es, pt, ko, th

How it works:

  • At least one of --first or --second must be provided
  • If both are the same language, it's treated as single-language mode
  • --mode is only used in bilingual mode (ignored for single language)
  • Language is auto-detected from your first prompt when creating a plan
  • Use /lang to change it mid-session if needed
  • Affects: PoK content, chat responses, command responses (/explain, /summary, etc.)
  • Does NOT retroactively change already-generated content

Was this article helpful?