Dyson DC37 latch repair
These are pieces that you can glue to your dust bin to replace the broken latch. You can also bolt them in place if you want. link to Youtube video for installation.
If bolting, the latch part needs to be moved 12mm to the right of the curve to avoid the rib on the inside. Parts are made with PETG except for the latch, it's TPU.
https://youtu.be/U1f9fGPpu0U