Skip to content

Add German (de) interface language - #271

Merged
h-a-n-a-s-h-i merged 1 commit into
storytold:mainfrom
arekown:german-translation
Oct 11, 2026
Merged

h-a-n-a-s-h-i merged 1 commit into
storytold:mainfrom
arekown:german-translation

Conversation

@arekown

@arekown arekown commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds German (Deutsch, de) as a full interface language.

  • New catalog crates/ui-egui/src/i18n/de.rs (266 entries), mirroring i18n/ru.rs's key set exactly (verified by diffing extracted keys). Translations are original work written from the meaning of the English UI strings, using the wording German spreadsheet users expect ("Werte einfügen", "Fenster fixieren", "Aufsteigend sortieren", …). MIT OR Apache-2.0.
  • i18n.rs: Language::De registered (code de, name Deutsch); de, de-DE, de_AT, de-CH resolve via from_tag; tr() dispatches to the new module.
  • Tests: German added to the i18n coverage loop, locale-tag tests (de, de-DE, de_AT, de-CH), the ribbon language-switch round-trip in tests/interaction.rs, and the default CJK font-order assertion in theme.rs. The previous from_tag("de-DE") == None assertion now expects Some(Language::De).
  • Docs: docs/localization-parity.md German row + revision history; ROADMAP.md languages section.

Intentionally unchanged (matching the other catalogs): product/tech names (GridCraft, PivotTable, Sparklines, CSV), and identical words (Zoom, Link, 100%). Formula function names stay English — FormulaLocale only has En/Es, and its doc comment covers this case.

Verification

  • cargo test -p gridcraft-ui-egui i18n → 5 passed, 0 failed
  • cargo test -p gridcraft-ui-egui --lib → 21 passed, 0 failed
  • cargo test -p gridcraft-ui-egui --test interaction --test formula_locale → 13 + 8 passed, 0 failed
  • Not run locally: cargo fmt / cargo clippy (components not installed in this toolchain) — formatting was matched to the existing catalogs by hand; happy to apply CI feedback

New catalog crates/ui-egui/src/i18n/de.rs (266 entries) mirroring the ru.rs
key set exactly; original translations written from the meaning of the
English UI strings, MIT OR Apache-2.0.

- Language::De registered (code de, name Deutsch); de/de-DE/de_AT/de-CH
  resolve via from_tag
- Tests: German coverage in the i18n coverage loop, de/de-AT/de-CH locale
  tags, ribbon round-trip case, default CJK font-order assertion
- Docs: localization-parity.md row, ROADMAP.md languages section

cargo test -p gridcraft-ui-egui i18n: 5 passed; --lib: 21 passed;
interaction + formula_locale: 13 + 8 passed.
@h-a-n-a-s-h-i
h-a-n-a-s-h-i merged commit fb9266f into storytold:main Oct 11, 2026
h-a-n-a-s-h-i pushed a commit that referenced this pull request Oct 11, 2026
…271); rustfmt after merges

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@echelon

echelon commented Oct 11, 2026

Copy link
Copy Markdown
Member

Merged — thank you for the contribution! (After merging alongside the Spanish translation, I added the German strings for the new Interface size option.)

If you haven't already, come join us on the ArtCraft Discord: https://discord.gg/artcraft

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.

3 participants