fix: translation omission (#281)

This commit is contained in:
Redon
2023-03-29 11:11:16 +08:00
committed by GitHub
parent 00c6c72270
commit 6ef83b0cb6
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ export const PromptModal: FC<Props> = ({ prompt, onClose, onUpdatePrompt }) => {
<input
ref={nameInputRef}
className="mt-2 w-full rounded-lg border border-neutral-500 px-4 py-2 text-neutral-900 shadow focus:outline-none dark:border-neutral-800 dark:border-opacity-50 dark:bg-[#40414F] dark:text-neutral-100"
placeholder="A name for your prompt."
placeholder={t('A name for your prompt.') || ''}
value={name}
onChange={(e) => setName(e.target.value)}
/>
+1
View File
@@ -4,6 +4,7 @@
"No prompts.": "无提示词",
"Search prompts...": "搜索提示...",
"Name": "名称",
"A name for your prompt.": "提示词名称",
"Description": "描述",
"A description for your prompt.": "提示词描述",
"Prompt": "提示词",
+2 -2
View File
@@ -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}`;
}