summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/user_settings/user_settings_advanced.jsx4
-rw-r--r--web/react/components/user_settings/user_settings_display.jsx74
-rw-r--r--web/react/utils/constants.jsx4
-rw-r--r--web/react/utils/utils.jsx2
4 files changed, 37 insertions, 47 deletions
diff --git a/web/react/components/user_settings/user_settings_advanced.jsx b/web/react/components/user_settings/user_settings_advanced.jsx
index 5c0757589..e513f81d2 100644
--- a/web/react/components/user_settings/user_settings_advanced.jsx
+++ b/web/react/components/user_settings/user_settings_advanced.jsx
@@ -47,10 +47,6 @@ const holders = defineMessages({
EMBED_PREVIEW: {
id: 'user.settings.advance.embed_preview',
defaultMessage: 'Show preview snippet of links below message'
- },
- LOC_PREVIEW: {
- id: 'user.settings.advance.loc_preview',
- defaultMessage: 'Show user language in display settings'
}
});
diff --git a/web/react/components/user_settings/user_settings_display.jsx b/web/react/components/user_settings/user_settings_display.jsx
index 4b11c06fb..98a010959 100644
--- a/web/react/components/user_settings/user_settings_display.jsx
+++ b/web/react/components/user_settings/user_settings_display.jsx
@@ -379,46 +379,44 @@ class UserSettingsDisplay extends React.Component {
);
}
- if (Utils.isFeatureEnabled(PreReleaseFeatures.LOC_PREVIEW)) {
- if (this.props.activeSection === 'languages') {
- var inputs = [];
- inputs.push(
- <ManageLanguages
- user={this.props.user}
- key='languages-ui'
- />
- );
+ if (this.props.activeSection === 'languages') {
+ var inputs = [];
+ inputs.push(
+ <ManageLanguages
+ user={this.props.user}
+ key='languages-ui'
+ />
+ );
- languagesSection = (
- <SettingItemMax
- title={formatMessage(holders.language)}
- width='medium'
- inputs={inputs}
- updateSection={(e) => {
- this.updateSection('');
- e.preventDefault();
- }}
- />
- );
- } else {
- var locale = 'English';
- Utils.languages().forEach((l) => {
- if (l.value === this.props.user.locale) {
- locale = l.name;
- }
- });
+ languagesSection = (
+ <SettingItemMax
+ title={formatMessage(holders.language)}
+ width='medium'
+ inputs={inputs}
+ updateSection={(e) => {
+ this.updateSection('');
+ e.preventDefault();
+ }}
+ />
+ );
+ } else {
+ var locale = 'English';
+ Utils.languages().forEach((l) => {
+ if (l.value === this.props.user.locale) {
+ locale = l.name;
+ }
+ });
- languagesSection = (
- <SettingItemMin
- title={formatMessage(holders.language)}
- width='medium'
- describe={locale}
- updateSection={() => {
- this.updateSection('languages');
- }}
- />
- );
- }
+ languagesSection = (
+ <SettingItemMin
+ title={formatMessage(holders.language)}
+ width='medium'
+ describe={locale}
+ updateSection={() => {
+ this.updateSection('languages');
+ }}
+ />
+ );
}
return (
diff --git a/web/react/utils/constants.jsx b/web/react/utils/constants.jsx
index d7d8a2ced..9689591a6 100644
--- a/web/react/utils/constants.jsx
+++ b/web/react/utils/constants.jsx
@@ -456,10 +456,6 @@ export default {
EMBED_PREVIEW: {
label: 'embed_preview',
description: 'Show preview snippet of links below message'
- },
- LOC_PREVIEW: {
- label: 'loc_preview',
- description: 'Show user language in display settings'
}
},
OVERLAY_TIME_DELAY: 400,
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 238a209a4..896a94ac5 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -1373,7 +1373,7 @@ export function languages() {
},
{
value: 'es',
- name: 'Español'
+ name: 'Español (Beta)'
}
]
);