Skip to content

Commit 238d312

Browse files
Add Traditional Chinese prompts converted from Simplified Chinese version
1 parent 8e4d261 commit 238d312

File tree

3 files changed

+523
-7
lines changed

3 files changed

+523
-7
lines changed

app/store/prompt.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export const usePromptStore = createPersistStore(
154154
fetch(PROMPT_URL)
155155
.then((res) => res.json())
156156
.then((res) => {
157-
let fetchPrompts = [res.en, res.cn];
157+
let fetchPrompts = [res.en, res.tw, res.cn];
158158
if (getLang() === "cn") {
159159
fetchPrompts = fetchPrompts.reverse();
160160
}
@@ -175,7 +175,8 @@ export const usePromptStore = createPersistStore(
175175
const allPromptsForSearch = builtinPrompts
176176
.reduce((pre, cur) => pre.concat(cur), [])
177177
.filter((v) => !!v.title && !!v.content);
178-
SearchService.count.builtin = res.en.length + res.cn.length;
178+
SearchService.count.builtin =
179+
res.en.length + res.cn.length + res.tw.length;
179180
SearchService.init(allPromptsForSearch, userPrompts);
180181
});
181182
},

0 commit comments

Comments
 (0)