[modeltranslation] move slug creation logic into the models