fixup: i18n for prompts

This commit is contained in:
Yifei Zhang
2023-03-28 17:39:14 +00:00
parent 6782e65fdf
commit 83400093a2
5 changed files with 67 additions and 57 deletions

View File

@@ -1,7 +1,6 @@
import { create } from "zustand";
import { persist } from "zustand/middleware";
import Fuse from "fuse.js";
import { showToast } from "../components/ui-lib";
export interface Prompt {
id?: number;
@@ -111,7 +110,6 @@ export const usePromptStore = create<PromptStore>()(
);
SearchService.count.builtin = res.en.length + res.cn.length;
SearchService.init(allPromptsForSearch);
showToast(`已加载 ${allPromptsForSearch.length} 条 Prompts`);
});
},
}