x-render icon indicating copy to clipboard operation
x-render copied to clipboard

locale=‘en’ 无效

Open hedyma86 opened this issue 2 years ago • 1 comments

1.依赖仓库的版本(Dependencies versions)

  • react:17.0.0
  • antd:4.14.0
  • "form-render": "^1.13.7-beta.0"

2.问题描述(Bug description)

3.最小复现 demo(Reproduction demo): import enUS from 'antd/lib/locale/en_US';

< form={form} schema={schema} onFinish={onFinish} configProvider={{locale:enUS}} />

直接设置 locale=“en'不生效 ,用configProvider生效了。但对象数组中的”新增一条“按钮还是中文,应该怎么解?

hedyma86 avatar Jun 22 '22 02:06 hedyma86

原因:目前ConfigProvider影响的是antd组件的设置,“新增一条”属于FormRender内部的文案,目前不受ConfigProvider的影响。 action:我下周发个版,支持下FR内部的国际化。

siyi98 avatar Jun 22 '22 06:06 siyi98

v1.13.14 版本,可以通过修改 schema 中的props,透传文案。

siyi98 avatar Sep 01 '22 09:09 siyi98