Skip to content

Commit

Permalink
Fix inconsistent i18n key names in workspace and examples (#8483)
Browse files Browse the repository at this point in the history
* Fix i18n keys start with workspaces

Signed-off-by: Lin Wang <[email protected]>

* Update key to uiActionsExplorer.appTitle

Signed-off-by: Lin Wang <[email protected]>

* Changeset file for PR #8483 created/updated

---------

Signed-off-by: Lin Wang <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
wanglam and opensearch-changeset-bot[bot] authored Oct 4, 2024
1 parent 9da5f9b commit 17ec426
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/8483.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Fix inconsistent i18n key names in workspace and examples ([#8483](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8483))
2 changes: 1 addition & 1 deletion examples/ui_actions_explorer/public/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const ActionsExplorer = () => {
<EuiTitle size="l">
<h1>
<FormattedMessage
id="uiAsctionsExample.appTitle"
id="uiActionsExplorer.appTitle"
defaultMessage="{name}"
values={{ name: 'UI Actions' }}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ export const SelectDataSourcePanel = ({
title={
<EuiText size="s">
<h3>
{i18n.translate('workspaces.forms.selectDataSourcePanel.emptyTableTitle', {
{i18n.translate('workspace.forms.selectDataSourcePanel.emptyTableTitle', {
defaultMessage: 'Associated data sources will appear here',
})}
</h3>
</EuiText>
}
body={
<EuiText size="s">
{i18n.translate('workspaces.forms.selectDataSourcePanel.emptyTableDescription', {
{i18n.translate('workspace.forms.selectDataSourcePanel.emptyTableDescription', {
defaultMessage: 'At least one data source is required to create a workspace.',
})}
</EuiText>
Expand Down

0 comments on commit 17ec426

Please sign in to comment.