|
| 1 | +--- |
| 2 | +trigger: always_on |
| 3 | +description: Response language rules for agents and workflows |
| 4 | +--- |
| 5 | + |
1 | 6 | # i18n Guide — Response Language Rules |
2 | 7 |
|
3 | | -Single source of truth for agent/workflow response language handling. |
| 8 | +Rules for determining and applying response language across agents and workflows. |
4 | 9 |
|
5 | 10 | ## Language Resolution |
6 | 11 |
|
7 | 12 | Response language is determined by the following priority: |
8 | 13 |
|
9 | 14 | 1. **User prompt language** — if the user writes in a specific language, respond in that language |
10 | | -2. **`user-preferences.yaml`** — `language` field in `.agents/config/user-preferences.yaml` |
| 15 | +2. **`oma-config.yaml`** — `language` field in `.agents/oma-config.yaml` |
11 | 16 | 3. **Fallback** — English (en) if neither of the above is set |
12 | 17 |
|
13 | 18 | ```yaml |
14 | | -# .agents/config/user-preferences.yaml |
| 19 | +# .agents/oma-config.yaml |
15 | 20 | language: ko # ko, en, ja, zh, ... |
16 | 21 | ``` |
17 | 22 |
|
@@ -46,13 +51,14 @@ language: ko # ko, en, ja, zh, ... |
46 | 51 | 3. **Inline code (`backtick`) is never translated** |
47 | 52 | 4. **Parenthetical supplement allowed** — for unfamiliar terms, use `translated(original)` format once |
48 | 53 | 5. **Register consistency** — match the target language's appropriate register for the context |
| 54 | +6. **Translation tasks** — for translating UI strings, docs, or marketing copy, use the `/oma-translator` skill |
49 | 55 |
|
50 | 56 | ## Workflow Integration |
51 | 57 |
|
52 | 58 | All workflows follow these rules. The following line in existing workflows references this guide: |
53 | 59 |
|
54 | 60 | ``` |
55 | | -- **Response language follows `language` setting in `.agents/config/user-preferences.yaml` if configured.** |
| 61 | +- **Response language follows `language` setting in `.agents/oma-config.yaml` if configured.** |
56 | 62 | ``` |
57 | 63 |
|
58 | 64 | ## Subagent Behavior |
|
0 commit comments