fix: use translation key as fallback + more translations

This commit is contained in:
Ased Mammad 2024-03-05 15:24:47 +03:30
parent b5b860f575
commit 66342140a3
8 changed files with 11 additions and 9 deletions

View file

@ -770,7 +770,7 @@
if ($settings.titleAutoGenerate ?? true) {
const title = await generateTitle(
localStorage.token,
$settings?.titleGenerationPrompt ?? $i18n.t('Default titleGenerationPromt') + ' {{prompt}}',
$settings?.titleGenerationPrompt ?? $i18n.t("Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':") + ' {{prompt}}',
$settings?.titleAutoGenerateModel ?? selectedModels[0],
userPrompt
);

View file

@ -779,7 +779,7 @@
if ($settings.titleAutoGenerate ?? true) {
const title = await generateTitle(
localStorage.token,
$settings?.titleGenerationPrompt ?? $i18n.t('Default titleGenerationPromt') + ' {{prompt}}',
$settings?.titleGenerationPrompt ?? $i18n.t("Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':") + ' {{prompt}}',
$settings?.titleAutoGenerateModel ?? selectedModels[0],
userPrompt
);

View file

@ -116,7 +116,7 @@
<div>
<input
class="px-3 py-1.5 text-sm w-full bg-transparent border dark:border-gray-600 outline-none rounded-lg"
placeholder="Add a short title for this prompt"
placeholder={$i18n.t('Add a short title for this prompt')}
bind:value={title}
required
/>
@ -163,7 +163,9 @@
<div>
<textarea
class="px-3 py-1.5 text-sm w-full bg-transparent border dark:border-gray-600 outline-none rounded-lg"
placeholder={`Write a summary in 50 words that summarizes [topic or keyword].`}
placeholder={$i18n.t(
`Write a summary in 50 words that summarizes [topic or keyword].`
)}
rows="6"
bind:value={content}
required