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

👑 [需求] 什么时候支持国际化、多语言

Open ttang1024 opened this issue 1 year ago • 5 comments

🥰 需求描述

希望像antd一样,支持国际化、多语言

ttang1024 avatar May 29 '24 01:05 ttang1024

@LCJove 搞一搞?直接继承自 antd 的 ConfigProvider 里面的 i18n 看起来非常ok

ONLY-yours avatar May 29 '24 01:05 ONLY-yours

不太好直接用吧,antd原有的组件可以用,prochat写的多语言库里没包含 咱们目前是有中英文了,如果想要更多的话可以开一个口子支持其他用户定义的语言

LCJove avatar May 30 '24 02:05 LCJove

怎么切换成英文呢?

huangyz0918 avatar May 31 '24 00:05 huangyz0918

怎么切换成英文呢?

指定 locale="en-US", BTW, 很想要一个日文.

image

uniquejava avatar May 31 '24 15:05 uniquejava

@ONLY-yours 需不需要开一个口子让用户自定义文案,我看内容不是很多,直接在locale={{placeholder: 'ko ni ji wa'}} image

LCJove avatar Jun 12 '24 07:06 LCJove