lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

[Bug] 中文语言界面下,删除助手的选项按钮是英文

Open Godoword opened this issue 1 year ago • 9 comments

💻 系统环境

Windows

📦 部署环境

Official Preview

🌐 浏览器

Firefox

🐛 问题描述

如下图所示: canvas

我记得之前是中文显示的。

🚦 期望结果

No response

📷 复现步骤

No response

📝 补充信息

No response

Godoword avatar Mar 27 '24 18:03 Godoword

👀 @Godoword

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot avatar Mar 27 '24 18:03 lobehubbot

这不是很正常吗

0verleaves avatar Mar 28 '24 10:03 0verleaves

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Isn't this normal?

lobehubbot avatar Mar 28 '24 10:03 lobehubbot

应该是语言切换的问题,我研究下为啥

arvinxx avatar Mar 28 '24 10:03 arvinxx

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It should be a language switching problem. I'll look into why.

lobehubbot avatar Mar 28 '24 10:03 lobehubbot

这不是很正常吗

Snipaste_2024-03-28_18-42-44

之前版本呈现的是中文“确认”和“取消”,虽然不影响什么,但是我的强迫症犯了(

Godoword avatar Mar 28 '24 10:03 Godoword

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Sorry I didn’t notice it before😥

lobehubbot avatar Mar 28 '24 11:03 lobehubbot

这不是很正常吗

Snipaste_2024-03-28_18-42-44

之前版本呈现的是中文“确认”和“取消”,虽然不影响什么,但是我的强迫症犯了(

sorry 我之前没留意到😥

0verleaves avatar Mar 28 '24 11:03 0verleaves

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Isn't this normal?

![Snipaste_2024-03-28_18-42-44](https://private-user-images.githubusercontent.com/5213106/317699036-c7d84394-2b25-46fe-a796-29d6fef799aa.png?jwt=eyJhbGciOiJIUzI1NiIs InR5cCI6IkpXVCJ9.._C9vqq2TFNcdwPbB4W -snudgcxeOBdZEq45i8lvuWc8)

The previous version presented "confirm" and "cancel" in Chinese. Although it didn't affect anything, it made me suffer from obsessive-compulsive disorder (

Sorry I didn’t notice it before😥

lobehubbot avatar Mar 28 '24 11:03 lobehubbot

@arvinxx 应该是静态方法丢失上下文导致的。modal.confirm 方法封装后手动指定 okText cancelText 或许可以。 https://ant.design/docs/blog/why-not-static-cn

wuyuan1992 avatar Mar 29 '24 10:03 wuyuan1992

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@arvinxx It should be caused by the static method losing context. It may be possible to manually specify okText cancelText after encapsulating the modal.confirm method. https://ant.design/docs/blog/why-not-static-cn

lobehubbot avatar Mar 29 '24 10:03 lobehubbot

✅ @Godoword

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot avatar Mar 29 '24 15:03 lobehubbot

:tada: This issue has been resolved in version 0.145.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

lobehubbot avatar Mar 29 '24 15:03 lobehubbot

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Sep 29 '25 18:09 github-actions[bot]