You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,12 +86,19 @@ This library has the following exports:
86
86
* ``messages``: Internationalization messages suitable for use with `@edx/frontend-platform/i18n <https://edx.github.io/frontend-platform/module-Internationalization.html>`_
87
87
* ``dist/footer.scss``: A SASS file which contains style information for the component. It should be imported into the micro-frontend's own SCSS file.
88
88
89
-
<Footer /> component props
90
-
==========================
89
+
Language Selector
90
+
-----------------
91
91
92
-
* onLanguageSelected: Provides the footer with an event handler for when the user selects a
93
-
language from its dropdown.
94
-
* supportedLanguages: An array of objects representing available languages. See example below for object shape.
92
+
The language selector dropdown is optional and can be enabled by setting the MFE configuration variable ``ENABLE_FOOTER_LANG_SELECTOR`` to ``true``.
93
+
Secondly, configue the languages that should be displayed in the dropdown by setting the MFE configuration variable ``SITE_SUPPORTED_LANGUAGES`` to an array of locale languages.
onLanguageSelected={(languageCode) => {/* set language */}}
113
-
supportedLanguages={[
114
-
{ label: 'English', value: 'en'},
115
-
{ label: 'Español', value: 'es' },
116
-
]}
117
-
/>
118
+
<Footer />
118
119
119
120
* `An example of minimal component and messages usage. <https://github.com/openedx/frontend-template-application/blob/3355bb3a96232390e9056f35b06ffa8f105ed7ca/src/index.jsx#L23>`_
120
121
* `An example of SCSS file usage. <https://github.com/openedx/frontend-template-application/blob/3cd5485bf387b8c479baf6b02bf59e3061dc3465/src/index.scss#L9>`_
0 commit comments