Quantum correlations and spatial localization in one-dimensional ultracold bosonic mixtures