Skip to content

Commit 968122d

Browse files
authored
✨ add multilingual name of scripts (#221)
1 parent 63d3061 commit 968122d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/options/routes/ScriptList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ import SynchronizeController from "@App/app/service/synchronize/controller";
7171
import { useTranslation } from "react-i18next";
7272
import { nextTime, semTime } from "@App/pkg/utils/utils";
7373
import { getValues, ListHomeRender, scriptListSort } from "./utils";
74+
// eslint-disable-next-line import/order
75+
import i18n from "@App/locales/locales";
7476

7577
type ListType = Script & { loading?: boolean };
7678

@@ -224,7 +226,7 @@ function ScriptList() {
224226
whiteSpace: "nowrap",
225227
}}
226228
>
227-
{col}
229+
{item.metadata[`name:${i18n.language.toLowerCase()}`] ?? col}
228230
</Text>
229231
</Link>
230232
</Tooltip>

0 commit comments

Comments
 (0)