Skip to content

Feature/translation de - #63

Merged
Mincka merged 3 commits into
Mincka:mainfrom
vlntnwbr:feature/translation_de
Jul 25, 2026
Merged

Mincka merged 3 commits into
Mincka:mainfrom
vlntnwbr:feature/translation_de

Conversation

@vlntnwbr

@vlntnwbr vlntnwbr commented Jul 25, 2026 •

Copy link
Copy Markdown

Pull Request

Description

As discussed in the old repo, here are some German translations for the integration.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented on my code where necessary
  • I have added tests that are covering all code branches
  • New and existing unit tests pass locally with my changes

@vlntnwbr
vlntnwbr requested a review from Mincka as a code owner July 25, 2026 13:42
- device_filter_mode: drop the leftover English "matching the patterns"
  fragment left inside the translated sentence
- audiobook: Hoerspiel (radio drama) -> Hoerbuch
- unlike_media: typo Bibiothek -> Bibliothek
- desktop_api_manual: "fuegen sie" -> "fuegen Sie" (formal address)
- public_private_accounts_mismatch: "ihrem Browser" -> "Ihrem Browser"

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@Mincka

Mincka commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Thanks a lot for this, and for following through from the discussion in the old repo.

I ran a key-parity check against en.json before anything else: 135 leaf keys on both sides, zero missing, zero extra, every {placeholder} token matching, and identical key ordering and indentation. Structurally this is exactly right, which made the review easy.

I pushed one commit onto the branch with five content corrections rather than sending it back to you for a round trip:

  • options.step.apply_options.data_description.device_filter_mode had a leftover English fragment inside the translated sentence: "...die dem Muster entsprechen matching the patterns."
  • selector.item_type.options.audiobook was Hörspiel (radio drama); changed to Hörbuch to match what the audiobook search type actually returns.
  • services.unlike_media.description: Bibiothek -> Bibliothek (the like_media description right above it already had it correct).
  • config.step.desktop_api_manual.description: fügen sie diese unten ein -> fügen Sie, for consistency with the formal address used throughout the rest of the file.
  • config.abort.public_private_accounts_mismatch: in ihrem Browser -> in Ihrem Browser, same reason.

Everything else is yours as written. I deliberately left your prose style alone, including the extra closing sentence you added to public_private_accounts_mismatch about logging out of Spotify first, which is genuinely more helpful than the English source.

One thing this PR surfaced: nothing in CI validates non-English translation files today, so a missing key or a placeholder typo in a future language file would ship silently. I am opening a separate PR with a parity test over translations/*.json so the next contributor gets that check for free.

Merging now; this will ship in v6.6.0.

@Mincka
Mincka merged commit 7954a8f into Mincka:main Jul 25, 2026
7 checks passed
Mincka added a commit that referenced this pull request Jul 25, 2026
PR #63 added the first non-English language file since fr.json, and
nothing in CI looks at those files: hassfest validates strings.json and
the English side only. A missing key falls back to English silently, and
a placeholder renamed in translation renders the raw token to the user.

The test asserts that strings.json and translations/en.json are
identical, and that every other translations/*.json has the same leaf
keys, the same {placeholder} tokens per key, and no blank strings. It
picks up new languages automatically through a glob, guarded by a test
that the glob is non-empty.

Resolving paths from __file__ rather than importing the integration
keeps the test free of the homeassistant dependency.

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@Mincka Mincka mentioned this pull request Jul 25, 2026
4 tasks done
Mincka added a commit that referenced this pull request Jul 25, 2026
German translation (#63, thanks @vlntnwbr) and a consistency test over
the translation files (#64).

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@Mincka

Mincka commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Shipped in v6.6.0. Thanks again — German is the third language Spotcast ships, and the parity test from #64 means the next one gets a structural check for free.

@vlntnwbr

Copy link
Copy Markdown
Author

Thanks for spotting the mistakes I made and fixing them. I'm glad to support this project. It's been invaluable to me.

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