alibaba / alibaba/lowcode-engine

antd DatePicker 物料翻译中文部分失效问题

Open
#2,295 4 comments 0 reactions 1 assignee Claimed by @hujiulong View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

## **Describe the bug (required)** / **详细描述 bug(必填)**
基于antd 组件库 DatePicker组件进行二次封装,并且对它进行翻译,使用了 部分是好的,但是月份和星期翻译失败,这一部分翻译是由moment.js 提供,但是引入了却是翻译失败了
---

## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)**
物料代码
![image](https://github.com/alibaba/lowcode-engine/assets/26854734/e67c3955-05f0-4175-a22b-fe3510b174f1)
最小demo 复现成功案例(在低代码物料 和编辑器却失败了)
[demo](https://codesandbox.io/s/antd-reproduction-template-forked-3lfr23?file=/index.js:230-312)

## **Expected behavior (required)** / **预期行为(必填,非常重要)**
A clear and concise description of what did you expect to happen. / 请清晰和精确的描述你预期的行为
![image](https://github.com/alibaba/lowcode-engine/assets/26854734/f4dbd186-f808-4eec-9bb3-26af5ead9792)
希望星期 和月也能翻译成功
---

## **Screenshots (optional)** / **bug 截图(可选)**
Sceenshots for further information. (If applicable.) / 一些有用的截图将会帮助我们更好的明确以及定位问题
![image](https://github.com/alibaba/lowcode-engine/assets/26854734/99640079-749b-40bd-a579-36753538a874)
绿色的是翻译成功的,是使用了进行翻译的,月份和星期翻译错误由moment.js翻译,但是翻译失败,自己用最小demo 是成功的,但是在低代码物料 和编辑器都不行
---

## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**
- AliLowCodeEngine v1.1.9-beta
- AliLowCodeExt v1.0.6-beta.27
- AliLowCodeEngineDemo v1.0.28
- Google Chrome 版本 114.0.5735.199(正式版本) (64 位)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.