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

[BUG] [Workspace] i18n translation id not under workspace namespace #6647

Open
Hailong-am opened this issue Apr 26, 2024 · 3 comments
Open
Assignees
Labels
bug Something isn't working workspace

Comments

@Hailong-am
Copy link
Collaborator

Describe the bug

running node ./scripts/i18n_extract.js --output-dir ./translations for workspace plugin, there will have few errors complaining i18n translation id need under workspace namespace.

ERROR  I18N ERROR  Error in src/plugins/workspace/common/constants.ts
      Error: Expected "core.ui.getStarted.label" id to have "workspace" namespace. See .i18nrc.json for the list of supported namespace

To Reproduce
Steps to reproduce the behavior:

  1. Add "workspace": "src/plugins/workspace" to .i18nrc.json
  2. Run node ./scripts/i18n_extract.js --output-dir ./translations

Expected behavior
no error when extract i18n resources

OpenSearch Version
main

Dashboards Version
main, 2.x

Plugins

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

@kavilla
Copy link
Member

kavilla commented May 1, 2024

@Hailong-am just going to assign you, feel free to remove if someone else will be handling it.

@anh2001ht
Copy link

@Hailong-am Hi, I have read Developer Guide of i18n translation , follow the document the plugin only working with local code (it work when yarn start the project) now I want to apply i18n translation for Docker, it is impossible? Thank you

@Hailong-am
Copy link
Collaborator Author

I want to apply i18n translation for Docker

you can build a customized image base on official OpenSearchDashboard image to include your i18n changes, and use that customized image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working workspace
Projects
None yet
Development

No branches or pull requests

3 participants