diff --git a/app/javascript/flavours/glitch/features/local_settings/page/index.jsx b/app/javascript/flavours/glitch/features/local_settings/page/index.jsx index 128a4d539..596598a16 100644 --- a/app/javascript/flavours/glitch/features/local_settings/page/index.jsx +++ b/app/javascript/flavours/glitch/features/local_settings/page/index.jsx @@ -6,6 +6,7 @@ import { defineMessages, FormattedMessage, injectIntl } from "react-intl"; import ImmutablePropTypes from "react-immutable-proptypes"; +import { languages as preloadedLanguages } from "flavours/glitch/initial_state"; // Our imports import LocalSettingsPageItem from "./item"; @@ -35,6 +36,12 @@ const messages = defineMessages({ direct: { id: "privacy.direct.short", defaultMessage: "Mentioned people only" }, }); +const langs = [] + +for (const lang of preloadedLanguages) { + langs.push({"value": lang[0], "label": lang[1]}) +} + class LocalSettingsPage extends PureComponent { static propTypes = { @@ -203,6 +210,16 @@ class LocalSettingsPage extends PureComponent { ({ intl, onChange, settings }) => (

+ + + + 0) { + const currentValue = settings.getIn(item); + const optionElems = select && select.length > 0 && select.map((opt) => { + return ( + + ) + }) + return ( +
+
+ +
+
+ ); + } if (options && options.length > 0) { const currentValue = settings.getIn(item);