PLT-1900 removing lang from preview and making spanish beta
Этот коммит содержится в:
@@ -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'
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1373,7 +1373,7 @@ export function languages() {
|
||||
},
|
||||
{
|
||||
value: 'es',
|
||||
name: 'Español'
|
||||
name: 'Español (Beta)'
|
||||
}
|
||||
]
|
||||
);
|
||||
|
||||
@@ -1126,7 +1126,6 @@
|
||||
"user.settings.advance.enabled": "enabled",
|
||||
"user.settings.advance.markdown_preview": "Show markdown preview option in message input box",
|
||||
"user.settings.advance.embed_preview": "Show preview snippet of links below message",
|
||||
"user.settings.advance.loc_preview": "Show user language in display settings",
|
||||
"user.settings.advance.sendDesc": "If enabled 'Enter' inserts a new line and 'Ctrl + Enter' submits the message.",
|
||||
"user.settings.advance.preReleaseDesc": "Check any pre-released features you'd like to preview. You may also need to refresh the page before the setting will take effect.",
|
||||
"user.settings.advance.title": "Advanced Settings",
|
||||
|
||||
@@ -1050,7 +1050,6 @@
|
||||
"user.settings.advance.enabled": "habilitada(s)",
|
||||
"user.settings.advance.feature": " Característica ",
|
||||
"user.settings.advance.features": " Características ",
|
||||
"user.settings.advance.loc_preview": "Mostrar el idioma del usuario en la configuración de visualización",
|
||||
"user.settings.advance.markdown_preview": "Mostrar la previsualización de mensajes escritos con markdown",
|
||||
"user.settings.advance.off": "Encendido",
|
||||
"user.settings.advance.on": "Apagado",
|
||||
|
||||
Ссылка в новой задаче
Block a user