Skip to content

add german translation - #1979

Open
akohlbecker wants to merge 2 commits into
UniversalViewer:devfrom
zkmkarlsruhe:feature/locale-german-DE
Open

akohlbecker wants to merge 2 commits into
UniversalViewer:devfrom
zkmkarlsruhe:feature/locale-german-DE

Conversation

@akohlbecker

Copy link
Copy Markdown
Contributor

Pull request description

Summary of changes

Added "German (DE)" translation for universalviewer and for all extensions

Related issues

no related issues

Contributor checklist

Accessibility & internationalisation

(NOTE: Below I checked also those point that do not apply to the suggested change rather than removing them.)

  • Accessibility: Changes have been checked against WCAG 2.2 Level AA, with no known accessibility failures introduced.
  • Keyboard accessibility: All new or modified interactive elements can be operated using a keyboard, with appropriate focus management and visible focus indicators.
  • Internationalisation: Contextual language switching works correctly and all new or modified interface strings have translations available in English, Welsh, Polish, French and Swedish.

Compatibility & interoperability

  • IIIF compatibility: Changes have been tested against relevant IIIF Presentation and Image API resources, with no known regressions in supported functionality.
  • Extension compatibility: Changes have been checked for compatibility with existing Universal Viewer extensions and extension points.
  • Backwards compatibility: Changes do not unintentionally break existing public APIs, integrations or configuration options.
  • Browser & device compatibility: Changes have been tested across relevant supported browsers, devices and screen sizes, including responsive layouts.

Code quality & testing

  • Automated testing: Relevant automated tests have been added or updated, and existing applicable tests pass. (NOTE: As there are no tests for none of the other languages than "English (GB)" I decided to conform this pattern and added no test for "German (DE)"
  • Regression testing: Existing functionality affected by the changes has been tested to ensure no unintended regressions.
  • Code quality: Changes follow the project's coding conventions, and relevant linting, formatting and type checks pass.
  • Performance: Changes have been reviewed for potential performance impacts, with no known significant regressions.
  • Security: Changes have been checked for potential security vulnerabilities, including unsafe handling of external data, URLs and user input.

Configuration & documentation

  • Configuration: New or modified configuration options have been added to the appropriate configuration files and documented in 'manual/CONFIG.md`.
  • Documentation: The repository README and any other affected documentation have been reviewed and updated where necessary.
  • User experience: Changes have been reviewed for usability, consistency with existing interface patterns and clarity of user interactions.

Additional notes for reviewers:

The new localization integrates smoothly into the existing localization of UV. This was confirmed by manual testing.

@vercel

vercel Bot commented Nov 25, 2026

Copy link
Copy Markdown

@akohlbecker is attempting to deploy a commit to the Universal Viewer Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
universalviewer Ready Ready Preview Dec 4, 2026 4:21pm UTC

Request Review

@demiankatz demiankatz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for sharing this, @akohlbecker!

I have put this on the Community Board in the "in testing" column so it will be discussed at the next Community Call.

While reviewing this, I noticed a couple of things that are mostly beyond the scope of this PR, but which the community may want to discuss; see further comments below.

I don't think that work needs to delay this project, though. I'll hold off on approving until others have had a chance to weigh in, but this is off to a great start!

"name": "en-GB",
"label": "English (GB)"
},
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like an existing oversight that the other non-English languages are missing here. We may want to review how these values are used in case there's an opportunity to simplify; having this redundant information in every extension does not seem helpful (though I realize that is a problem beyond the scope of this immediate PR).

"fr-FR": () => import("../../../../locales/fr-FR.json"),
"pl-PL": () => import("../../../../locales/pl-PL.json"),
"sv-SE": () => import("../../../../locales/sv-SE.json"),
"de-DE": () => import("../../../../locales/de-DE.json"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to consider alphabetizing this list for readability.

@jamesmisson
jamesmisson self-requested a review December 3, 2026 10:04

@jamesmisson jamesmisson left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @akohlbecker , thank you for this.

We are changing the icon for the 'Go Home' button to 'Fit Image' (see screenshot). It centers the image on the canvas.

image

Please could you change the value for "$goHome" to something appropriate? Thank you very much.

@akohlbecker

Copy link
Copy Markdown
Contributor Author

Please could you change the value for "$goHome" to something appropriate? Thank you very much.

@jamesmisson I just committed and pushed the German translation for the modified label.

This branch was successfully deployed

1 active deployment
Preview – universalviewer — 916279e9 Deployed Dec 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In testing

Development

Successfully merging this pull request may close these issues.

3 participants