edly-io / h5pxblock

Xblock which provides ability to play H5P content in open edX
MIT License
13 stars 23 forks source link

fix: replace comma (`,`) by dot (`.`) in value of weight field #29

Closed BryanttV closed 9 months ago

BryanttV commented 10 months ago

Description

This PR fixes an error when editing an H5P component when the platform language is set to Spanish. In Spanish, the default value of the weight field is (1,0), and when converting to float it breaks.

Screenshots

Before

image

After

Error no longer occurs image