fixup: translation context

This commit is contained in:
Yifei Zhang
2023-04-02 18:02:03 +00:00
parent b85245e317
commit e3c3cd3d18
6 changed files with 25 additions and 5 deletions

View File

@@ -133,13 +133,13 @@ function PromptToast(props: {
>
<BrainIcon />
<span className={chatStyle["prompt-toast-content"]}>
{context.length}
{Locale.Context.Toast(context.length)}
</span>
</div>
{props.showModal && (
<div className="modal-mask">
<Modal
title="编辑前置上下文"
title={Locale.Context.Edit}
onClose={() => props.setShowModal(false)}
actions={[
<IconButton
@@ -194,7 +194,7 @@ function PromptToast(props: {
<div className={chatStyle["context-prompt-row"]}>
<IconButton
icon={<AddIcon />}
text="新增"
text={Locale.Context.Add}
bordered
className={chatStyle["context-prompt-button"]}
onClick={() =>