Skip to content

Commit 32974c0

Browse files
grinevhbx12
andauthored
feat(i18n): add arabic localization (#142)
Co-authored-by: HBX <107771255+hbx12@users.noreply.github.com>
1 parent e1d52d6 commit 32974c0

4 files changed

Lines changed: 569 additions & 4 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ OPENCODE_MODEL_ID=big-pickle
9595
# BASH_TOOL_DISPLAY_MAX_LENGTH=128
9696

9797
# Bot locale: supported locale code (default: en)
98-
# Supported locales: en, de, es, fr, ru, zh
98+
# Supported locales: en, ar, de, es, fr, ru, zh
9999
# BOT_LOCALE=en
100100

101101
# Hide thinking indicator messages (default: false)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Scheduled tasks support. Turns the bot into a lightweight OpenClaw alternative f
1717

1818
Platforms: macOS, Windows, Linux
1919

20-
Languages: English (`en`), Deutsch (`de`), Español (`es`), Français (`fr`), Русский (`ru`), 简体中文 (`zh`)
20+
Languages: English (`en`), العربية (`ar`), Deutsch (`de`), Español (`es`), Français (`fr`), Русский (`ru`), 简体中文 (`zh`)
2121

2222
<p align="center">
2323
<img src="assets/screencast.gif" width="45%" alt="OpenCode Telegram Bot screencast" />
@@ -190,7 +190,7 @@ For this to work, the console OpenCode instance must be started on the same port
190190

191191
### Localization
192192

193-
- Supported locales: `en`, `de`, `es`, `fr`, `ru`, `zh`
193+
- Supported locales: `en`, `ar`, `de`, `es`, `fr`, `ru`, `zh`
194194
- The setup wizard asks for language first
195195
- You can change locale later with `BOT_LOCALE`
196196

@@ -217,7 +217,7 @@ When installed via npm, the configuration wizard handles the initial setup. The
217217
| `OPENCODE_SERVER_PASSWORD` | Server auth password | No ||
218218
| `OPENCODE_MODEL_PROVIDER` | Default model provider | Yes | `opencode` |
219219
| `OPENCODE_MODEL_ID` | Default model ID | Yes | `big-pickle` |
220-
| `BOT_LOCALE` | Bot UI language (supported locale code, e.g. `en`, `de`, `es`, `fr`, `ru`, `zh`) | No | `en` |
220+
| `BOT_LOCALE` | Bot UI language (supported locale code, e.g. `en`, `ar`, `de`, `es`, `fr`, `ru`, `zh`) | No | `en` |
221221
| `SESSIONS_LIST_LIMIT` | Sessions per page in `/sessions` | No | `10` |
222222
| `MESSAGES_LIST_LIMIT` | User messages per page in `/messages` | No | `10` |
223223
| `PROJECTS_LIST_LIMIT` | Projects per page in `/projects` | No | `10` |

0 commit comments

Comments
 (0)