Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ OPENCODE_MODEL_ID=big-pickle
# BASH_TOOL_DISPLAY_MAX_LENGTH=128

# Bot locale: supported locale code (default: en)
# Supported locales: en, de, es, fr, ru, zh
# Supported locales: en, de, es, fr, ru, tr, zh
# BOT_LOCALE=en

# Hide thinking indicator messages (default: false)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Scheduled tasks support. Turns the bot into a lightweight OpenClaw alternative f

Platforms: macOS, Windows, Linux

Languages: English (`en`), Deutsch (`de`), Español (`es`), Français (`fr`), Русский (`ru`), 简体中文 (`zh`)
Languages: English (`en`), Deutsch (`de`), Español (`es`), Français (`fr`), Русский (`ru`), Türkçe (`tr`), 简体中文 (`zh`)

<p align="center">
<img src="assets/screencast.gif" width="45%" alt="OpenCode Telegram Bot screencast" />
Expand Down Expand Up @@ -137,7 +137,7 @@ Scheduled tasks let you prepare prompts in advance and run them automatically la

### Localization

- Supported locales: `en`, `de`, `es`, `fr`, `ru`, `zh`
- Supported locales: `en`, `de`, `es`, `fr`, `ru`, `tr`, `zh`
- The setup wizard asks for language first
- You can change locale later with `BOT_LOCALE`

Expand All @@ -159,7 +159,7 @@ When installed via npm, the configuration wizard handles the initial setup. The
| `OPENCODE_SERVER_PASSWORD` | Server auth password | No | — |
| `OPENCODE_MODEL_PROVIDER` | Default model provider | Yes | `opencode` |
| `OPENCODE_MODEL_ID` | Default model ID | Yes | `big-pickle` |
| `BOT_LOCALE` | Bot UI language (supported locale code, e.g. `en`, `de`, `es`, `fr`, `ru`, `zh`) | No | `en` |
| `BOT_LOCALE` | Bot UI language (supported locale code, e.g. `en`, `de`, `es`, `fr`, `ru`, `tr`, `zh`) | No | `en` |
| `SESSIONS_LIST_LIMIT` | Sessions per page in `/sessions` | No | `10` |
| `PROJECTS_LIST_LIMIT` | Projects per page in `/projects` | No | `10` |
| `OPEN_BROWSER_ROOTS` | Comma-separated paths `/open` is allowed to browse (supports `~`) | No | `~` (home directory) |
Expand Down
7 changes: 7 additions & 0 deletions src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { de } from "./de.js";
import { es } from "./es.js";
import { fr } from "./fr.js";
import { ru } from "./ru.js";
import { tr } from "./tr.js";
import { zh } from "./zh.js";

interface LocaleDefinition {
Expand Down Expand Up @@ -43,6 +44,12 @@ const LOCALE_DEFINITIONS = [
dateLocale: "ru-RU",
dictionary: ru,
},
{
code: "tr",
label: "Türkçe",
dateLocale: "tr-TR",
dictionary: tr,
},
{
code: "zh",
label: "简体中文",
Expand Down
Loading