From 0b217583473aaa7ac2a4ccb2ad7be3654c132bb7 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 3 Apr 2023 11:08:14 +0800 Subject: [PATCH] fix: route title i18n in global search is not compatible (#3665) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind bug /area console /cherry-pick release-2.4 #### What this PR does / why we need it: 修复后台全局搜索中关于 Console 路由的文字没有适配 i18n 的问题。 #### Which issue(s) this PR fixes: Fixes #3664 #### Special notes for your reviewer: image #### Does this PR introduce a user-facing change? ```release-note 修复后台全局搜索中关于 Console 路由的文字没有适配 i18n 的问题。 ``` --- console/src/components/global-search/GlobalSearchModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/src/components/global-search/GlobalSearchModal.vue b/console/src/components/global-search/GlobalSearchModal.vue index 070c0e69e..a5b90d5ea 100644 --- a/console/src/components/global-search/GlobalSearchModal.vue +++ b/console/src/components/global-search/GlobalSearchModal.vue @@ -76,7 +76,7 @@ const handleBuildSearchIndex = () => { routes.forEach((route) => { fuse.add({ - title: route.meta?.title as string, + title: t(route.meta?.title as string), icon: { component: markRaw(IconLink), },