diff --git a/bigbluebutton-html5/imports/startup/client/intl.jsx b/bigbluebutton-html5/imports/startup/client/intl.jsx index a9b0c7a240..98717d55a2 100644 --- a/bigbluebutton-html5/imports/startup/client/intl.jsx +++ b/bigbluebutton-html5/imports/startup/client/intl.jsx @@ -185,18 +185,28 @@ class IntlStartup extends Component { } } -const IntlStartupContainer = withTracker(() => { +const IntlStartupContainer = (props) => { + const setLocalSettings = useUserChangedLocalSettings(); + + return ( + + ); +}; + +export default withTracker(() => { const { locale } = Settings.application; const overrideLocaleFromPassedParameter = getFromUserSettings('bbb_override_default_locale', null); - const setLocalSettings = useUserChangedLocalSettings(); + return { locale, overrideLocaleFromPassedParameter, - setLocalSettings, }; -})(IntlStartup); - -export default IntlStartupContainer; +})(IntlStartupContainer); IntlStartup.propTypes = propTypes; IntlStartup.defaultProps = defaultProps;