From f321602034a5a68f6cd7171deb440ccee1314df9 Mon Sep 17 00:00:00 2001 From: Diana Olarte Date: Wed, 11 Dec 2024 13:14:40 +1100 Subject: [PATCH] feat: create a footer lang selector --- README.rst | 17 +++---------- src/components/Footer.jsx | 22 +++++----------- src/components/Footer.test.jsx | 39 ++++++++++++++++++----------- src/components/LanguageSelector.jsx | 32 ++++++++++++++++++++--- src/components/data/api.js | 32 +++++++++++++++++++++++ 5 files changed, 93 insertions(+), 49 deletions(-) create mode 100644 src/components/data/api.js diff --git a/README.rst b/README.rst index 32a1e5feb..0bcb02a8f 100644 --- a/README.rst +++ b/README.rst @@ -49,7 +49,8 @@ Optionally, use the following variables to configure the Terms of Service Modal * ``PRIVACY_POLICY_URL`` - The URL for the privacy policy. * ``TERMS_OF_SERVICE_URL`` - The URL for the terms of service. * ``TOS_AND_HONOR_CODE`` - The URL for the honor code. - +* ``ENABLE_FOOTER_LANG_SELECTOR`` - A boolean to enable the lnaguage selector in the footer component. +* ``SITE_SUPPORTED_LENGUAGES`` - A list with all the languages to display in the selector. Installation ============ @@ -94,12 +95,6 @@ This library has the following exports: * ``messages``: Internationalization messages suitable for use with `@edx/frontend-platform/i18n `_ * ``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. -