You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the extraction script errors appear for default messages with the same id dashboard.strings.dashboardEditTitle
To Reproduce
Steps to reproduce the behavior:
Run ./scripts/use_node scripts/i18n_extract.js --output-dir plugins/dashboards-i18n/translations/
Script errors out with: ERROR I18N ERROR Error in src/plugins/dashboard/public/application/utils/breadcrumbs.ts Error: There is more than one default message for the same id "dashboard.strings.dashboardEditTitle": "Editing {title}" and "Editing New Dashboard (unsaved)" ERROR I18N ERROR Error in src/plugins/dashboard/public/application/utils/breadcrumbs.ts Error: There is more than one default message for the same id "dashboard.strings.dashboardEditTitle": "Editing {title}" and "Editing New Dashboard" ERROR I18N ERROR Error in src/plugins/dashboard/public/application/utils/breadcrumbs.ts Error: There is more than one default message for the same id "dashboard.strings.dashboardViewTitle": "New Dashboard" and "{title}" ERROR I18N ERROR Error in src/plugins/dashboard/public/application/utils/breadcrumbs.ts Error: There is more than one default message for the same id "dashboard.strings.dashboardEditTitle": "Editing {title}" and "Editing {title} (unsaved)"
Expected behavior
OpenSearch Version
Using the OS snapshot 3.0.0
Dashboards Version
package.json is 3.0.0
commit 061e476 (HEAD, upstream/main, upstream/HEAD)
Author: Suyash Srivastava [email protected]
Date: Sat Aug 19 02:48:52 2023 +0530
Plugins
None
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.
The text was updated successfully, but these errors were encountered:
Hi @abbyhu2000, thanks for the PR, it fixed the error with 4 duplicate texts. I tried running the script and found that there are 2 additional errors unrelated to the one described in this issue. I believe that after we fix that we would be able to run the script without errors.
ERROR I18N ERROR Error in src/plugins/vis_type_vega/public/expressions/vega_fn.ts
Error: There is more than one default message for the same id "visTypeVega.function.help":
"Construct line vega spec" and "Vega visualization"
We could use different ids to fix it.
ERROR I18N ERROR Error in src/plugins/visualizations/public/embeddable/visualize_embeddable.ts
Error: expressions are not allowed in template literals ("visualizations.renderVisTitle").
We can pass the title through values attribute to fix this one.
Describe the bug
When running the extraction script errors appear for default messages with the same id
dashboard.strings.dashboardEditTitle
To Reproduce
Steps to reproduce the behavior:
./scripts/use_node scripts/i18n_extract.js --output-dir plugins/dashboards-i18n/translations/
ERROR I18N ERROR Error in src/plugins/dashboard/public/application/utils/breadcrumbs.ts Error: There is more than one default message for the same id "dashboard.strings.dashboardEditTitle": "Editing {title}" and "Editing New Dashboard (unsaved)" ERROR I18N ERROR Error in src/plugins/dashboard/public/application/utils/breadcrumbs.ts Error: There is more than one default message for the same id "dashboard.strings.dashboardEditTitle": "Editing {title}" and "Editing New Dashboard" ERROR I18N ERROR Error in src/plugins/dashboard/public/application/utils/breadcrumbs.ts Error: There is more than one default message for the same id "dashboard.strings.dashboardViewTitle": "New Dashboard" and "{title}" ERROR I18N ERROR Error in src/plugins/dashboard/public/application/utils/breadcrumbs.ts Error: There is more than one default message for the same id "dashboard.strings.dashboardEditTitle": "Editing {title}" and "Editing {title} (unsaved)"
Expected behavior
OpenSearch Version
Using the OS snapshot 3.0.0
Dashboards Version
package.json is 3.0.0
commit 061e476 (HEAD, upstream/main, upstream/HEAD)
Author: Suyash Srivastava [email protected]
Date: Sat Aug 19 02:48:52 2023 +0530
Plugins
None
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: