Skip to content

English README and docs, IT/EN language switch in the dashboard - #17

Merged
botta0oss merged 3 commits into
mainfrom
claude/lucid-lovelace-h1c8tm
Sep 25, 2026
Merged

botta0oss merged 3 commits into
mainfrom
claude/lucid-lovelace-h1c8tm

Conversation

@botta0oss

Copy link
Copy Markdown
Owner

What changes

Dashboard: IT/EN button at the top right, next to the theme button.

  • Every text goes through t() (frontend/i18n.js), with the English dictionary in frontend/i18n-en.js (≈1,170 strings).
  • The choice is remembered in the browser. On the first visit the dashboard follows the browser's language.
  • Numbers, dates and amounts follow the language (41,02 $ / $41.02, 1,5 / 1.5).
  • On phones the header keeps logo, Update, IT/EN and theme on one row. It also fixes a horizontal overflow at 320px in the multi-outcome card.

Server texts in the same language.

  • The dashboard sends X-Lang with every request. Plans ("What to do"), economic reasons, error messages and preset/feature labels follow it (backend/i18n.py, tr(it, en)).
  • Background texts use the new APP_LANGUAGE setting, English by default: Telegram alerts, news summaries, stored notes and the user CLI.
  • Feed catalogue: English description, with the Italian kept as description_it and served by language.

Documentation.

  • README.md and docs/*.md are now in English, with English file names and a language link on every page.
  • The Italian README and pages moved to README.it.md and docs/it/, with their links updated.
  • New English screenshots are in docs/images/. The Italian ones, refreshed to show the IT/EN button, are in docs/images/it/.
  • In the English README I translated the author's note in the warning box but left out the model name, which is still in the Italian version. Edit it if you want the name there too.

Tests

  • tests/test_i18n.py covers:
    • request language and APP_LANGUAGE;
    • a plan in English;
    • X-Lang on the API;
    • a check that every t("…") in the dashboard has an English translation with the same placeholders.
  • The existing tests run with APP_LANGUAGE=it and still check the Italian texts: 188 passed.
  • node --check passes on every frontend module.
  • Playwright:
    • every page in English: no missing translations, no JS errors;
    • the IT/EN toggle both ways;
    • no horizontal scroll at 320, 360 and 390px.
  • All links and anchors in the 26 Markdown files resolve.

Known limit

Texts already saved in the database keep the language they were written in: old backtest notes and alert errors in Italian. New ones follow the chosen language.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JLWZrfy12imc6dQRsEtFjj


Generated by Claude Code

- Dashboard: every text goes through t() (frontend/i18n.js) with an English
  dictionary in i18n-en.js; IT/EN button next to the theme button, remembered
  in the browser (first visit: the browser language). Numbers, dates and
  dollars follow the language.
- API: the dashboard sends X-Lang; plans, economic reasons, error messages and
  preset/feature labels follow it (backend/i18n.py, tr(it, en)).
- Background texts (Telegram alerts, summaries, stored notes) use the new
  APP_LANGUAGE setting, English by default.
- Feed catalogue descriptions in English, with the Italian kept as
  description_it.
- Phones: the header keeps brand, Update, IT/EN and theme on one row; the
  multi-outcome card no longer overflows at 320px.
- Tests: the English texts, X-Lang on the API, and a check that every t()
  string has an English translation with the same placeholders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JLWZrfy12imc6dQRsEtFjj
Horizon labels, "x of y" counts, source toasts and the preset buttons were
still Italian in English mode; order lines now read "111 YES shares" in
English. Header and multi-outcome card fit at 320px, with only the logo on
narrow phones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JLWZrfy12imc6dQRsEtFjj
- README.md and docs/*.md are now English, with English file names
  (guide, method, strategy, alerts, verification, costs, configuration,
  security, deploy, api, development) and language links on every page.
- The Italian README and pages moved to README.it.md and docs/it/, with
  their links updated.
- New English screenshots in docs/images; the Italian ones, refreshed with
  the IT/EN button, in docs/images/it.
- Documented the language button, X-Lang, APP_LANGUAGE and how translations
  work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JLWZrfy12imc6dQRsEtFjj
@botta0oss
botta0oss merged commit 7bffa74 into main Sep 25, 2026
2 checks 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.

2 participants