G6VP网站导出的UMD源码本地运行后只能是前端中文显示,不能切换成英文
keepon-01 opened this issue · 4 comments
您好,首先谢谢团队提供这么棒的产品。但是我现在遇到一个问题,我在g6vp网站选择自己喜欢的组件后,导出UMD源码,本地运行后或者是code sandbox运行后, 发现前端只能显示中文,不能切换成中文,生成的src/index.tsx中没有locale参数,指定后也不能转换成英文,我这边是通信网络公司产品想接入你们的产品,期待你们的回信。
Hello, first of all, thank you to the team for providing such a great product. However, I am currently facing an issue. After selecting my preferred components on the G6vp website and exporting the UMD source code, when I run it locally or in CodeSandbox, I find that the frontend only displays in Chinese and cannot be switched to English. In the generated src/index.tsx, there is no locale parameter, and specifying it does not result in a language switch to English. I work for a communication network company and would like to integrate your product. Looking forward to your response.
这个问题不仅存在UMD模式下,还存在html模式和ESM模式,感觉语言切换的功能未开放给用户。
@keepon-01
Step 1:
Configure language settings from the relevant files.
Step 2:
I don't know if this was an issue that has been fixed, but if it still persists, follow the heading below:
#537
Thank you for your response. I noticed your previous issue regarding the language problem on the G6VP website. Now, in the top right corner of the website, you can directly switch the language.
However, my current problem is with the language display in the UMD source code exported after selecting my own components on the G6VP website.
I have previously examined the source code and noticed that many packages contain an i18n directory with language settings. However, the issue I am currently facing is that the UMD source code exported from the G6VP website does not include the source code of these packages; it only contains a simple index.tsx file with a few lines of code. From a flexibility perspective, I believe it would be beneficial to expose the locale parameter to users.
Because I want to redeploy the exported UMD source code to my project and hope it display entirely in English.
@keepon-01 Step 1: Configure language settings from the relevant files.
Step 2: I don't know if this was an issue that has been fixed, but if it still persists, follow the heading below: #537
@keepon-01 Step 1: Configure language settings from the relevant files.
Step 2: I don't know if this was an issue that has been fixed, but if it still persists, follow the heading below: #537
I have tried your method and it works, thank you very much.