Repository navigation
Add German localization - #139
Merged
Merged
Conversation
viktorstrate
requested changes
Nov 18, 2026
viktorstrate
left a comment
Owner
There was a problem hiding this comment.
Looks great! I will have an attempt to translate the application to danish after this is merged 😊
I think it is just fine to keep emoji translations simple for now. We discussed on the matrix channel that most of the currently manually implemented emoji package could be replaced by the EmojiKit library. That library contains its own localizations for all the emojis, category names, and keywords.
I've left a single comment that we need to resolve before it's ready to merge.
Move all user-facing strings into a single string catalog in the app target (Mactrix/Localizable.xcstrings), since the package UI code looks up strings in the main bundle, and translate them to German. Add scripts/sync-strings.sh to pull new package strings into the catalog. Make previously hard-coded AppKit labels, tooltips, alerts, notification texts and event descriptions localizable. Split room/space sentences in the room preview, and use plural variations for counts. Rewrite the state event summary formatter around full-sentence templates with placeholders, so translations can reorder names and choose the verb form for one or several people while names stay clickable.
viktorstrate
force-pushed
the
german-translation
branch
from
November 24, 2026 12:55
4c8d9d6 to
479e933
Compare
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.
Adds a complete German translation and the plumbing to keep translations in sync.
How strings are stored
All UI code lives in the Swift package, and SwiftUI's
Text("…"),Button("…")andString(localized:)look up translations in the app's main bundle by default. So all strings go into a single catalog in the app target,Mactrix/Localizable.xcstrings, and existing call sites keep working unchanged.Package.swiftnow setsdefaultLocalization: "en"so the compiler extracts strings from package targets.Xcode only syncs a catalog with its own target's strings, so
scripts/sync-strings.shbuilds the app and runsxcstringstool syncwith the package targets'.stringsdata. The README explains when to run it.Code changes
"room"/"space", so articles and cases can be translated.StateEventSummaryFormatternow uses full-sentence templates with placeholders instead of joining English fragments. Translations can reorder names and choose singular/plural verb forms ("Alice ist beigetreten" / "Alice und Bob sind beigetreten"), and names stay clickable segments. English output is unchanged: all existing formatter tests pass, and there's a new test for reordered placeholders.HH:mmtimestamps now use a locale-aware format.InfoPlist.xcstringsfor the contacts usage description;deadded to known regions.Not covered
InspectorCommandsmenu item shows as "Informationen Show" in German. It comes from SwiftUI's own localization, not this catalog.Testing
xcodebuild testpasses.-AppleLanguages "(de)"and checked the menus, sidebar and all Settings tabs; English is unchanged.