mirror of
https://github.com/open-webui/open-webui
synced 2025-03-09 22:21:04 +00:00
i18n: ask and explain floating buttons
This commit is contained in:
parent
05599e1bb5
commit
c06484297b
@ -121,7 +121,8 @@
|
|||||||
toast.error('Model not selected');
|
toast.error('Model not selected');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
prompt = `Explain this section to me in more detail\n\n\`\`\`\n${selectedText}\n\`\`\``;
|
const explainText = $i18n.t('Explain this section to me in more detail');
|
||||||
|
prompt = `${explainText}\n\n\`\`\`\n${selectedText}\n\`\`\``;
|
||||||
|
|
||||||
responseContent = '';
|
responseContent = '';
|
||||||
const [res, controller] = await chatCompletion(localStorage.token, {
|
const [res, controller] = await chatCompletion(localStorage.token, {
|
||||||
@ -246,7 +247,7 @@
|
|||||||
>
|
>
|
||||||
<ChatBubble className="size-3 shrink-0" />
|
<ChatBubble className="size-3 shrink-0" />
|
||||||
|
|
||||||
<div class="shrink-0">Ask</div>
|
<div class="shrink-0">{$i18n.t('Ask')}</div>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="px-1 hover:bg-gray-50 dark:hover:bg-gray-800 rounded-sm flex items-center gap-1 min-w-fit"
|
class="px-1 hover:bg-gray-50 dark:hover:bg-gray-800 rounded-sm flex items-center gap-1 min-w-fit"
|
||||||
@ -257,7 +258,7 @@
|
|||||||
>
|
>
|
||||||
<LightBlub className="size-3 shrink-0" />
|
<LightBlub className="size-3 shrink-0" />
|
||||||
|
|
||||||
<div class="shrink-0">Explain</div>
|
<div class="shrink-0">{$i18n.t('Explain')}</div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
|
@ -93,6 +93,7 @@
|
|||||||
"Are you sure?": "",
|
"Are you sure?": "",
|
||||||
"Arena Models": "",
|
"Arena Models": "",
|
||||||
"Artifacts": "",
|
"Artifacts": "",
|
||||||
|
"Ask": "",
|
||||||
"Ask a question": "",
|
"Ask a question": "",
|
||||||
"Assistant": "",
|
"Assistant": "",
|
||||||
"Attach file from knowledge": "",
|
"Attach file from knowledge": "",
|
||||||
@ -443,6 +444,8 @@
|
|||||||
"Exclude": "",
|
"Exclude": "",
|
||||||
"Execute code for analysis": "",
|
"Execute code for analysis": "",
|
||||||
"Experimental": "",
|
"Experimental": "",
|
||||||
|
"Explain": "",
|
||||||
|
"Explain this section to me in more detail": "",
|
||||||
"Explore the cosmos": "",
|
"Explore the cosmos": "",
|
||||||
"Export": "",
|
"Export": "",
|
||||||
"Export All Archived Chats": "",
|
"Export All Archived Chats": "",
|
||||||
|
@ -93,6 +93,7 @@
|
|||||||
"Are you sure?": "Você tem certeza?",
|
"Are you sure?": "Você tem certeza?",
|
||||||
"Arena Models": "Arena de Modelos",
|
"Arena Models": "Arena de Modelos",
|
||||||
"Artifacts": "Artefatos",
|
"Artifacts": "Artefatos",
|
||||||
|
"Ask": "Perguntar",
|
||||||
"Ask a question": "Faça uma pergunta",
|
"Ask a question": "Faça uma pergunta",
|
||||||
"Assistant": "Assistente",
|
"Assistant": "Assistente",
|
||||||
"Attach file from knowledge": "",
|
"Attach file from knowledge": "",
|
||||||
@ -443,6 +444,8 @@
|
|||||||
"Exclude": "Excluir",
|
"Exclude": "Excluir",
|
||||||
"Execute code for analysis": "",
|
"Execute code for analysis": "",
|
||||||
"Experimental": "Experimental",
|
"Experimental": "Experimental",
|
||||||
|
"Explain": "Explicar",
|
||||||
|
"Explain this section to me in more detail": "Explique esta seção em mais detalhes",
|
||||||
"Explore the cosmos": "Explorar o cosmos",
|
"Explore the cosmos": "Explorar o cosmos",
|
||||||
"Export": "Exportar",
|
"Export": "Exportar",
|
||||||
"Export All Archived Chats": "Exportar todos os chats arquivados",
|
"Export All Archived Chats": "Exportar todos os chats arquivados",
|
||||||
|
Loading…
Reference in New Issue
Block a user