Skip to content

Commit

Permalink
Fix dynamic uses of i18n in home plugin (#8403)
Browse files Browse the repository at this point in the history
* Fix dynamic uses of i18n in home plugin

Signed-off-by: Miki <[email protected]>

* Changeset file for PR #8403 created/updated

---------

Signed-off-by: Miki <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 96d436e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 65f213b commit 76e5379
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/8403.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Fix dynamic uses of i18n in home plugin ([#8403](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8403))
4 changes: 2 additions & 2 deletions src/plugins/home/server/ui_settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import { USE_NEW_HOME_PAGE } from '../common/constants';

export const uiSettings: Record<string, UiSettingsParams> = {
[USE_NEW_HOME_PAGE]: {
name: i18n.translate('core.ui_settings.params.useNewHomePage', {
name: i18n.translate('home.ui_settings.useNewHomePage.label', {
defaultMessage: 'Use New Home Page',
}),
value: false,
description: i18n.translate('core.ui_settings.params.useNewHomePage', {
description: i18n.translate('home.ui_settings.useNewHomePage.description', {
defaultMessage: 'Try the new home page',
}),
schema: schema.boolean(),
Expand Down

0 comments on commit 76e5379

Please sign in to comment.