A chemical study of carbon fractionation in external galaxies