Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Hide locale setting if there's a single locale available (#330)
Browse files Browse the repository at this point in the history
* UCHAT-275 Add config option to hide locale setting

* Hide locale setting if there's a single locale available Ex: AvailableLocales: en
  • Loading branch information
csduarte authored and crspeller committed Dec 7, 2017
1 parent 0ddf5a1 commit 19bb1e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/user_settings/user_settings_display.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,10 @@ export default class UserSettingsDisplay extends React.Component {
);
}

if (Object.keys(I18n.getLanguages()).length === 1) {
languagesSection = null;
}

let themeSection;
if (global.mm_config.EnableThemeSelection !== 'false') {
themeSection = (
Expand Down

0 comments on commit 19bb1e0

Please sign in to comment.