Skip to content

Update - #15

Merged
merfiDEV merged 4 commits into
masterfrom
update
Sep 17, 2026
Merged

merfiDEV merged 4 commits into
masterfrom
update

Conversation

@merfiDEV

Copy link
Copy Markdown
Owner

No description provided.

Introduce internationalization for the Telegram bot and add a persistent bot language setting.

- Add botsrc/i18n.js: RU/EN string tables, t(), getBotLang(), normalizeLang().
- Localize botsrc/index.js: use i18n.t everywhere, add helpers (_t, _lang), language-choice flow on /start, settings page entries, and callback handling for st_lang_*.
- Persist telegramLanguage in src/main/settings-store.js (defaults & read/write), derive system fallback.
- Add plan.md describing the i18n design and checks.

Behavior: if telegramLanguage not chosen, /start prompts RU/EN; language changes persist to cuckoo-settings.json.
Enhance Telegram integration: add session management (/sessions, /switch), commit browsing (/log, /show, /files), paginated views for /diff, /todos and other lists with inline keyboard navigation, and attachments support (download from TG and inject into chat). Add per-user restriction (telegramAllowedUserId) and tool notification ignore list. Implement helper pager/rendering, temp download dir, file/photo attach flows, telegram API helpers (downloadFile, setMyCommands), and register bot commands. Update i18n strings and settings UI/defaults accordingly.
Docs: add <meta name="app-version"> and small script to auto-fetch latest GitHub release for displayed version in both en and ru pages; expand tools list, gallery markup and Telegram-related docs (language, allowed user id, notify ignore). UI: tweak text/observer options and examples. Code: large refactor of src/preload/dom/settings-tab.js — consistent quoting/formatting, safer DOM queries, improved HTML building, escape handling, and many UX fixes. Add Telegram allowedUserId and telegramToolNotifyIgnore handling (read/save/apply), improve background grid refresh/selection, slider/change handlers, diagnostics modal copy fallback, immediate apply of conv token visibility, and various console/error improvements.
@merfiDEV
merfiDEV merged commit 072b8db into master Sep 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant