diff --git a/components/Promptbar/PromptModal.tsx b/components/Promptbar/PromptModal.tsx index 8223c07..2c640e1 100644 --- a/components/Promptbar/PromptModal.tsx +++ b/components/Promptbar/PromptModal.tsx @@ -65,7 +65,7 @@ export const PromptModal: FC = ({ prompt, onClose, onUpdatePrompt }) => { setName(e.target.value)} /> diff --git a/public/locales/zh/promptbar.json b/public/locales/zh/promptbar.json index a1b4747..9f45f00 100644 --- a/public/locales/zh/promptbar.json +++ b/public/locales/zh/promptbar.json @@ -4,6 +4,7 @@ "No prompts.": "无提示词", "Search prompts...": "搜索提示...", "Name": "名称", + "A name for your prompt.": "提示词名称", "Description": "描述", "A description for your prompt.": "提示词描述", "Prompt": "提示词", diff --git a/utils/app/importExport.ts b/utils/app/importExport.ts index c554fdc..2cc967e 100644 --- a/utils/app/importExport.ts +++ b/utils/app/importExport.ts @@ -51,8 +51,8 @@ export function cleanData(data: SupportedExportFormats): LatestExportFormat { function currentDate() { const date = new Date(); - let month = date.getMonth() + 1; - let day = date.getDate(); + const month = date.getMonth() + 1; + const day = date.getDate(); return `${month}-${day}`; }