Repository navigation
Add German, Dutch and Turkish languages - #7
Merged
Merged
Conversation
A language menu in the header switches the whole site between English, German, Dutch and Turkish and remembers the choice. Labels, options, results, warnings, formulas, sketch texts, theory notes and the PDF report are translated. Texts stay in English in the code; js/i18n/*.js map each English text to its translation, and the tests fail when a text has no translation in a language. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtSyM77K7oA3Y95W9AbJRE
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.
Requested by Eren · project thread
What changes
js/i18n.jsaddsPEC.t(englishText, vars).js/i18n/de.js,nl.jsandtr.jsmap each English text to its translation (686 texts each). Untranslated text falls back to English.Tests
npm testnow also checks that every text the app can show exists in each language and keeps its{placeholders}. It also renders every calculator, option and sketch phase in each language and fails if any text shows up untranslated. 726 tests pass.Notes: numbers keep a decimal point in every language, to match the result values. The source-article link titles stay in English because they are the real JPE article names.
Generated by Claude Code