langusage migration templates

Also pretty-print