From e38ad6efbaa1fcd6930acb4f1fb13dc5f4f66be2 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:33:06 +0800 Subject: [PATCH] Fix dynamic uses of i18n in home plugin (#8403) (#8436) * Fix dynamic uses of i18n in home plugin * Changeset file for PR #8403 created/updated --------- (cherry picked from commit 96d436edc57c4ef80ce9b7c86a7c1a4c48c79bbf) Signed-off-by: Miki Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> --- changelogs/fragments/8403.yml | 2 ++ src/plugins/home/server/ui_settings.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/8403.yml diff --git a/changelogs/fragments/8403.yml b/changelogs/fragments/8403.yml new file mode 100644 index 00000000000..34d00d2e265 --- /dev/null +++ b/changelogs/fragments/8403.yml @@ -0,0 +1,2 @@ +fix: +- Fix dynamic uses of i18n in home plugin ([#8403](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8403)) \ No newline at end of file diff --git a/src/plugins/home/server/ui_settings.ts b/src/plugins/home/server/ui_settings.ts index 7df590ba548..ff0fb0ab142 100644 --- a/src/plugins/home/server/ui_settings.ts +++ b/src/plugins/home/server/ui_settings.ts @@ -17,11 +17,11 @@ import { USE_NEW_HOME_PAGE } from '../common/constants'; export const uiSettings: Record = { [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(),