Skip to content

fix(i18n): restore interpolation variables in de-DE translations - #9019

Open
owgreen-dev wants to merge 1 commit into
AppFlowy-IO:mainfrom
owgreen-dev:patch-1
Open

owgreen-dev wants to merge 1 commit into
AppFlowy-IO:mainfrom
owgreen-dev:patch-1

Conversation

@owgreen-dev

@owgreen-dev owgreen-dev commented Sep 14, 2026 •

Copy link
Copy Markdown

Three German strings translated the interpolation variable name itself ({Name}, {Zeit}), so the value is never substituted and users see the literal token instead of the page name / timestamp.

What's changed (frontend/resources/translations/de-DE.json, 3 strings)

key before after
tooltip.referencePage Auf diesen {Name} wird verwiesen Auf diesen {name} wird verwiesen
web.fileBlock.uploadedAt Hochgeladen am {Zeit} Hochgeladen am {time}
web.fileBlock.linkedAt Link hinzugefügt am {Zeit} Link hinzugefügt am {time}

Variable names now match en-US.json; German wording unchanged.

Found while running an open-source i18n placeholder checker I maintain (shipi18n) over a few OSS locale trees; each change was checked by hand against en-US.json. cs-CZ and pl-PL have a related issue ({count} became a bare {} in 8 keys) — happy to send that as a separate PR if this one is welcome.

No existing issue for this; translation-only change, no code touched.

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above — n/a (no issue exists; translation fix only)
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

Summary by Sourcery

Bug Fixes:

  • Restore German translation interpolation variables so page names and timestamps are substituted instead of displayed as literal tokens.

Three German strings translated the interpolation variable name itself (`{Name}`, `{Zeit}`), so the
value is never substituted and users see the literal token instead of the page name / timestamp.

### What's changed (`frontend/resources/translations/de-DE.json`, +3/−3)

| key | before | after |
|---|---|---|
| `tooltip.referencePage` | `Auf diesen {Name} wird verwiesen` | `Auf diesen {name} wird verwiesen` |
| `web.fileBlock.uploadedAt` | `Hochgeladen am {Zeit}` | `Hochgeladen am {time}` |
| `web.fileBlock.linkedAt` | `Link hinzugefügt am {Zeit}` | `Link hinzugefügt am {time}` |

Variable names now match `en-US.json`; German wording unchanged.

Found while running an open-source placeholder checker I maintain (shipi18n) over a few OSS locale
trees; each change was checked by hand against `en-US.json`. cs-CZ and pl-PL have a related issue
(`{count}` became a bare `{}` in 8 keys) — happy to send that as a separate PR if this one is welcome.

No existing issue for this; translation-only change, no code touched.

#### PR Checklist
- [x] My code adheres to AppFlowy's Conventions
- [x] I've listed at least one issue that this PR fixes in the description above — n/a (no issue exists; translation fix only)
- [x] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
- [x] All existing tests are passing.
@CLAassistant

CLAassistant commented Sep 14, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@sourcery-ai

sourcery-ai Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The PR fixes three German locale placeholders so page names and timestamps are interpolated instead of displayed as literal tokens; no application code or behavior outside these translations is changed.

File-Level Changes

Change Details Files
Restored the interpolation variable names in three German translations to match the English source keys and runtime substitution variables.
  • Changed the page-name placeholder from {Name} to {name}.
  • Changed the timestamp placeholders from {Zeit} to {time} in upload and link metadata strings.
  • Preserved the existing German wording while correcting only placeholder casing/names.
frontend/resources/translations/de-DE.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot 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.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

This branch has not been deployed

No deployments
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