Skip to content

Commit

Permalink
Fix inconsistent i18n key names in workspace and examples (#8483) (#8485
Browse files Browse the repository at this point in the history
)

* Fix i18n keys start with workspaces



* Update key to uiActionsExplorer.appTitle



* Changeset file for PR #8483 created/updated

---------



(cherry picked from commit 17ec426)

Signed-off-by: Lin Wang <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 4, 2024
1 parent cb6a3ff commit a7d682b
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 a7d682b

Please sign in to comment.