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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -65,7 +65,7 @@ export const PromptModal: FC<Props> = ({ prompt, onClose, onUpdatePrompt }) => {
<input <input
ref={nameInputRef} 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" 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} value={name}
onChange={(e) => setName(e.target.value)} onChange={(e) => setName(e.target.value)}
/> />

View File

@ -4,6 +4,7 @@
"No prompts.": "无提示词", "No prompts.": "无提示词",
"Search prompts...": "搜索提示...", "Search prompts...": "搜索提示...",
"Name": "名称", "Name": "名称",
"A name for your prompt.": "提示词名称",
"Description": "描述", "Description": "描述",
"A description for your prompt.": "提示词描述", "A description for your prompt.": "提示词描述",
"Prompt": "提示词", "Prompt": "提示词",

View File

@ -51,8 +51,8 @@ export function cleanData(data: SupportedExportFormats): LatestExportFormat {
function currentDate() { function currentDate() {
const date = new Date(); const date = new Date();
let month = date.getMonth() + 1; const month = date.getMonth() + 1;
let day = date.getDate(); const day = date.getDate();
return `${month}-${day}`; return `${month}-${day}`;
} }