From 44ff6e926d9ed508ef1c56976bb600a281a25d6a Mon Sep 17 00:00:00 2001 From: LiWeny16 Date: Thu, 27 Jul 2023 20:16:09 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20add=20multilingual=20name=20of=20sc?= =?UTF-8?q?ripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/options/routes/ScriptList.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/options/routes/ScriptList.tsx b/src/pages/options/routes/ScriptList.tsx index 03220509..730eb787 100644 --- a/src/pages/options/routes/ScriptList.tsx +++ b/src/pages/options/routes/ScriptList.tsx @@ -71,6 +71,8 @@ import SynchronizeController from "@App/app/service/synchronize/controller"; import { useTranslation } from "react-i18next"; import { nextTime, semTime } from "@App/pkg/utils/utils"; import { getValues, ListHomeRender, scriptListSort } from "./utils"; +// eslint-disable-next-line import/order +import i18n from "@App/locales/locales"; type ListType = Script & { loading?: boolean }; @@ -224,7 +226,7 @@ function ScriptList() { whiteSpace: "nowrap", }} > - {col} + {item.metadata[`name:${i18n.language.toLowerCase()}`] ?? col}