AgentGPT icon indicating copy to clipboard operation
AgentGPT copied to clipboard

Chineese not supported - 不支持中文话题啊

Open vehome opened this issue 1 year ago • 25 comments

vehome avatar Apr 16 '23 09:04 vehome

https://agentgpt.vast123.com/ 汉化了下,可以试试。

vastxie avatar Apr 16 '23 10:04 vastxie

@vastxie 你是怎么部署的?应该不是docker吧

a506488043 avatar Apr 16 '23 11:04 a506488043

Hi @vehome,

It seems like you haven't provided any description of the issue you are facing. Can you please provide more details about the problem you are encountering so that we can assist you better?

Thank you.

hemangjoshi37a avatar Apr 16 '23 12:04 hemangjoshi37a

https://agentgpt.vast123.com/ 汉化了下,可以试试。

可否共享下,谢谢

Lone333 avatar Apr 16 '23 13:04 Lone333

@vastxie 你是怎么部署的?应该不是docker吧

npm run dev

vastxie avatar Apr 16 '23 14:04 vastxie

https://agentgpt.vast123.com/ 汉化了下,可以试试。

可否共享下,谢谢

主要是修改 src/utils/chains 中的内容,晚点儿拉个fork

vastxie avatar Apr 16 '23 14:04 vastxie

https://agentgpt.vast123.com/ 汉化了下,可以试试。

可否共享下,谢谢

主要是修改 src/utils/chains 中的内容,晚点儿拉个fork

多谢啦,这边部署vercel时总是报环境变量错误,不知道你那里怎么解决的呢?

Lone333 avatar Apr 16 '23 14:04 Lone333

@Jshen123 would you be able to help here. I think i saw you responding to another thread in Chinese. It would be great if we could bring chineese support on to the platform

awtkns avatar Apr 16 '23 14:04 awtkns

@vastxie would you be intrested in bringing these changes to the main repo?

awtkns avatar Apr 16 '23 14:04 awtkns

@vastxie 用npm run dev报各种错误。搭建不起来

a506488043 avatar Apr 16 '23 14:04 a506488043

@vehome AgentGPT 支持中文话题但是所有的回复还是英文。 @vastxie 欢迎你帮助我们开发中文支持 :smile:

Jshen123 avatar Apr 17 '23 03:04 Jshen123

@vastxie would you be intrested in bringing these changes to the main repo?

I am happy to do this, I will submit my code later.

vastxie avatar Apr 17 '23 04:04 vastxie

https://agentgpt.vast123.com/ 汉化了下,可以试试。

可否共享下,谢谢

主要是修改 src/utils/chains 中的内容,晚点儿拉个fork

多谢啦,这边部署vercel时总是报环境变量错误,不知道你那里怎么解决的呢?

我这边也是环境变量报错 但是本地dev正常 image

adminlove520 avatar Apr 17 '23 07:04 adminlove520

我刚试了一下,将prompt改成中文, 返回的结果就都是中文了

image

yuntao1997 avatar Apr 17 '23 09:04 yuntao1997

我刚试了一下,将prompt改成中文, 返回的结果就都是中文了

image

界面的语言怎么调整呀

adminlove520 avatar Apr 17 '23 09:04 adminlove520

@vastxie 用npm run dev报各种错误。搭建不起来

这是因为你没有配置环境变量 需要配置一下呢

adminlove520 avatar Apr 17 '23 09:04 adminlove520

能否引用i18n呀

adminlove520 avatar Apr 17 '23 09:04 adminlove520

主要改一下这几个文件就好了,引用i18n我觉得没问题,我弄一下试试。

prompt:src/utils/chain.ts、src/components/ChatWindow.tsx 页面:src/pages/index.tsx

yuntao1997 avatar Apr 17 '23 09:04 yuntao1997

算了,我选择放弃,ts、react都不怎么熟,写死还行,动态的。。 交给其他大佬来。。

yuntao1997 avatar Apr 17 '23 09:04 yuntao1997

算了,我选择放弃,ts、react都不怎么熟,写死还行,动态的。。 交给其他大佬来。。

需要改的文本不怎么多,可以在index页面中设置下拉框选择语言全局切换,这样就不涉及插件路由什么的。晚点儿来实现下

vastxie avatar Apr 17 '23 10:04 vastxie

简单汉化了下,核心是在预添加的前置提示词,指定回复的答案要和提问的语言类型一致,就可以实现用户用什么语言提问,回答就用什么语言回答。 网站内容简单翻译了下。 生成PDF的时候会有乱码,换了一个中文的字体库。 已经部署在vercel上,部署的时候注意next.config.mjs下的这行代码可以注释掉: //!process.env.SKIP_ENV_VALIDATION && (await import("./src/env/server.mjs")); 做了个demo,大家可以看看: AgentGPT汉化版 代码地址

microcodor avatar Apr 17 '23 16:04 microcodor

大佬集成下i18n,提交到主分支呗,后面升级方便

yuntao1997 avatar Apr 18 '23 05:04 yuntao1997

大佬集成下i18n,提交到主分支呗,后面升级方便

好的,这个星期内集成i18n 🙏

Jshen123 avatar Apr 19 '23 05:04 Jshen123

PR for i18n implementation by @Cs4K1Sr4C (pending approval) https://github.com/reworkd/AgentGPT/pull/273

Jshen123 avatar Apr 20 '23 00:04 Jshen123

It's coming, but still pending on approval...

Cs4K1Sr4C avatar Apr 20 '23 00:04 Cs4K1Sr4C

Implemented!

asim-shrestha avatar May 02 '23 05:05 asim-shrestha