Skip to content

Commit cdae0c4

Browse files
committed
feat(i18n): add Spanish locale
1 parent 2af420f commit cdae0c4

4 files changed

Lines changed: 355 additions & 5 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ OPENCODE_MODEL_ID=big-pickle
4141
# PROJECTS_LIST_LIMIT=10
4242

4343
# Bot locale: supported locale code (default: en)
44-
# Supported locales: en, de, ru, zh
44+
# Supported locales: en, de, es, ru, zh
4545
# BOT_LOCALE=en
4646

4747
# Service message batching interval in seconds (thinking + tool calls, default: 5)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Run AI coding tasks, monitor progress, switch models, and manage sessions from y
1111

1212
No open ports, no exposed APIs. The bot communicates with your local OpenCode server and the Telegram Bot API only.
1313

14-
Languages: English (`en`), Deutsch (`de`), Русский (`ru`), 简体中文 (`zh`)
14+
Languages: English (`en`), Deutsch (`de`), Español (`es`), Русский (`ru`), 简体中文 (`zh`)
1515

1616
Quick start: `npx @grinev/opencode-telegram-bot`
1717

@@ -32,7 +32,7 @@ Quick start: `npx @grinev/opencode-telegram-bot`
3232
- **Input flow control** — when an interactive flow is active, the bot accepts only relevant input to keep context consistent and avoid accidental actions
3333
- **Configurable reply formatting** — assistant replies use Telegram MarkdownV2 by default, with optional raw mode (`MESSAGE_FORMAT_MODE=markdown|raw`)
3434
- **Security** — strict user ID whitelist; no one else can access your bot, even if they find it
35-
- **Localization** — English, German, Russian, and Simplified Chinese UI (`BOT_LOCALE=en|de|ru|zh`)
35+
- **Localization** — English, German, Spanish, Russian, and Simplified Chinese UI (`BOT_LOCALE=en|de|es|ru|zh`)
3636

3737
## Prerequisites
3838

@@ -115,7 +115,7 @@ Any regular text message is sent as a prompt to the coding agent only when no bl
115115

116116
### Localization
117117

118-
- Supported locales: `en`, `de`, `ru`, `zh`
118+
- Supported locales: `en`, `de`, `es`, `ru`, `zh`
119119
- The setup wizard asks for language first
120120
- You can change locale later with `BOT_LOCALE`
121121

@@ -137,7 +137,7 @@ When installed via npm, the configuration wizard handles the initial setup. The
137137
| `OPENCODE_SERVER_PASSWORD` | Server auth password | No ||
138138
| `OPENCODE_MODEL_PROVIDER` | Default model provider | Yes | `opencode` |
139139
| `OPENCODE_MODEL_ID` | Default model ID | Yes | `big-pickle` |
140-
| `BOT_LOCALE` | Bot UI language (supported locale code, e.g. `en`, `de`, `ru`, `zh`) | No | `en` |
140+
| `BOT_LOCALE` | Bot UI language (supported locale code, e.g. `en`, `de`, `es`, `ru`, `zh`) | No | `en` |
141141
| `SESSIONS_LIST_LIMIT` | Max sessions shown in `/sessions` | No | `10` |
142142
| `PROJECTS_LIST_LIMIT` | Max projects shown in `/projects` | No | `10` |
143143
| `SERVICE_MESSAGES_INTERVAL_SEC` | Service messages interval (thinking + tool calls); keep `>=2` to avoid Telegram rate limits, `0` = immediate | No | `5` |

0 commit comments

Comments
 (0)