Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support manual override of text blocks #14712

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

msujew
Copy link
Member

@msujew msujew commented Jan 9, 2025

What it does

Related to #14684

Allows to override any translatable text block within Theia by providing a replacement object. I've provided an example contribution I18nSampleReplacementContribution to show how to use this. This is not limited to English, but extendable to any language available for Theia/VSCode. Since this replacement needs to happen at the same time as the localization, it is placed in the frontendPreload phase of the application lifecycle.

How to test

  1. Open the "Help" menu
  2. See that the "About" menu entry is now "About Theia"
  3. Use the Configure Display Language command to switch to German
  4. The "About" menu should now display "Über Theia" (instead of simply "Info")

Review checklist

Reminder for reviewers

@msujew msujew added the localization issues related to localization/internalization/nls label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
localization issues related to localization/internalization/nls
Projects
Status: Waiting on reviewers
Development

Successfully merging this pull request may close these issues.

1 participant