Repository navigation
English README and docs, IT/EN language switch in the dashboard - #17
Merged
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
Dashboard: IT/EN button at the top right, next to the theme button.
t()(frontend/i18n.js), with the English dictionary infrontend/i18n-en.js(≈1,170 strings).41,02 $/$41.02,1,5/1.5).Server texts in the same language.
X-Langwith every request. Plans ("What to do"), economic reasons, error messages and preset/feature labels follow it (backend/i18n.py,tr(it, en)).APP_LANGUAGEsetting, English by default: Telegram alerts, news summaries, stored notes and the user CLI.description, with the Italian kept asdescription_itand served by language.Documentation.
README.mdanddocs/*.mdare now in English, with English file names and a language link on every page.README.it.mdanddocs/it/, with their links updated.docs/images/. The Italian ones, refreshed to show the IT/EN button, are indocs/images/it/.Tests
tests/test_i18n.pycovers:APP_LANGUAGE;X-Langon the API;t("…")in the dashboard has an English translation with the same placeholders.APP_LANGUAGE=itand still check the Italian texts: 188 passed.node --checkpasses on every frontend module.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