Don’t hadcode language information

All the needed information are now in the toolkit, so we utilize it.