Skip to content

Commit

Permalink
✨ add multilingual name of scripts (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiWeny16 committed Jul 27, 2023
1 parent 63d3061 commit 968122d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/options/routes/ScriptList.tsx
Expand Up @@ -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 };

Expand Down Expand Up @@ -224,7 +226,7 @@ function ScriptList() {
whiteSpace: "nowrap",
}}
>
{col}
{item.metadata[`name:${i18n.language.toLowerCase()}`] ?? col}
</Text>
</Link>
</Tooltip>
Expand Down

0 comments on commit 968122d

Please sign in to comment.