tern: log invalid language codes