-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: edit translated caroussel data #122
Conversation
DEV-1086 Carousel Translation (botpress/botpress #3864)
You cannot translate Carousel content. When you try to, text defaults back to the original content. Steps to reproduce the behaviour:
Expected behavior Screenshots Environment:
|
@EFF What's the link between this PR and DEV-1580? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment other than that LGTM!
DEV-1825 [BUG] Content of carousel in arabic is not saved (botpress/studio #108)
I have FR/AR bot. I'am trying to translate the content of my carousel from FR to AR.
Version : 12.26.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and working fine! Good job!!
@laurentlp I added typings but it's the worst typing we could add as by debugging, there is a single key in the object and its any. We also read a second key that is also a type any and return it as is if it's defined (although I didn't manage to see it defined). To be honest that whole file should be re-written properly |
Notice this line is the original code, the comment mentions we should ignore array arrays of empty objects
studio/packages/studio-ui/src/web/util/NodeFormData.ts
Lines 18 to 34 in fed7ac6
In this code at line 27, we return undefined if the array has not empty objects
!formData[x].filter(_.isEmpty).length
I rewrote the logic for something much simpler, yet readable.
Fixes #108
Closes : DEV-1825 & DEV-1086