Skip to content

feat: ship translations as in-tree foundation plugins - #5983

Open
debsmita1 wants to merge 2 commits into
redhat-developer:mainfrom
debsmita1:add-translations
Open

debsmita1 wants to merge 2 commits into
redhat-developer:mainfrom
debsmita1:add-translations

Conversation

@debsmita1

@debsmita1 debsmita1 commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Summary

RHDH NFS i18n previously dependent on published @red-hat-developer-hub/backstage-plugin-translations* packages from the separate translations workspace. Now we want the translations frontend API and translations-backend packaged with RHDH so that i18n infrastructure lives with the foundation stack and is not tied to optional dynamic plugins.

  • Added @internal/plugin-translations (NFS translationsApiModule, JSON catalog merge, pseudo-localization, /translations debug page).
  • Added @internal/plugin-translations-backend (/api/translations discovery + i18n.overrides).
  • Wired both into packages/app and packages/backend; dropped the published package imports.
  • Configured api:app/app-language with en/de/es/fr/it/ja so the Settings language toggle appears.
  • Documented the move in ADR-0006 / plugin READMEs (including how to test overrides and pseudo-localization).

Which issue(s) does this PR fix

Screenshots

Screenshot 2026-12-04 at 7 34 10 PM Screenshot 2026-12-04 at 7 33 28 PM

Testing

Add translations/local-overrides.json (see plugins/translations/README.md)

In app-config.local.yaml:

i18n:
  overrides:
    - ../../translations/local-overrides.json

yarn dev 

In the Settings page, Switch English → French

Goto route /translations title/subtitle should show the override

To test pseudo-localization:

Open http://localhost:3000/?pseudolocalization=true strings should look wrapped/stretched

PR acceptance criteria

Please make sure that the following steps are complete:

  • GitHub Actions are completed and successful
  • Unit Tests are updated and passing
  • E2E Tests are updated and passing
  • Documentation is updated if necessary (requirement for new features)
  • Add a screenshot if the change is UX/UI related

How to test changes / Special notes to the reviewer

Signed-off-by: Debsmita Santra <debsmita.santra@gmail.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification

This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration.

Use /test ? to list jobs and /pipeline help for commands.

@openshift-ci
openshift-ci Bot requested review from AdamBrez and ciiay December 4, 2026 14:06
@debsmita1

Copy link
Copy Markdown
Member Author

) {
target[key] = deepMergeTranslations(target[key] || {}, source[key]);
} else {
target[key] = source[key];
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The container image build workflow finished with status: failure.

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The container image build workflow finished with status: failure.

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