JSON API: Translate the error messages.

And `sprintf` in the slug when merited.