Fix custom constraint translation