Merge "Simplify the logic for LanguageSettings."