From 22da891a6bd0ecc1bc9913819b0f8232119b5485 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Fri, 8 Sep 2023 21:49:28 +0530 Subject: [PATCH 01/14] add custom i18n link Signed-off-by: Ansh Goyal --- components/link.js | 9 +++++++++ components/navigation/MenuBlocks.js | 5 +++-- lib/i18nPaths.js | 10 ++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 lib/i18nPaths.js diff --git a/components/link.js b/components/link.js index de49d3b1895d..62619593cd61 100644 --- a/components/link.js +++ b/components/link.js @@ -1,6 +1,7 @@ import Link from "next/link"; import { useRouter } from "next/router"; import { defaultLanguage, languages } from "../lib/i18n"; +import i18nPaths from "../lib/i18nPaths"; const LinkComponent = ({ children, locale, ...props }) => { const router = useRouter(); @@ -13,6 +14,14 @@ const LinkComponent = ({ children, locale, ...props }) => { let href = props.href || pathname; + if ((props.href && i18nPaths[language] && !i18nPaths[language].includes(href)) || href.includes("http", 0)) { + return ( + + {children} + + ); + } + if (locale) { if (props.href) { href = `/${locale}${href}`; diff --git a/components/navigation/MenuBlocks.js b/components/navigation/MenuBlocks.js index 8125bf9041c8..c2c1e3eb786e 100644 --- a/components/navigation/MenuBlocks.js +++ b/components/navigation/MenuBlocks.js @@ -1,3 +1,4 @@ +import LinkComponent from '../link'; import Paragraph from '../typography/Paragraph'; import Label from './Label' import Link from 'next/link' @@ -11,7 +12,7 @@ export default function MenuBlocks ({ items.map((item, index) => { const isExternalHref = item.href && item.href.startsWith('http'); return ( - + - + ) }) } diff --git a/lib/i18nPaths.js b/lib/i18nPaths.js new file mode 100644 index 000000000000..b527ee54881f --- /dev/null +++ b/lib/i18nPaths.js @@ -0,0 +1,10 @@ +const i18nPaths = { + en: [ + "/tools/cli" + ], + de: [ + "/tools/cli" + ] +}; + +export default i18nPaths; \ No newline at end of file From b86965a9ac3ed5cf2f9a71b2650be334fecad4b0 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Sat, 9 Sep 2023 12:14:25 +0530 Subject: [PATCH 02/14] fix link.js Signed-off-by: Ansh Goyal --- components/link.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/link.js b/components/link.js index 62619593cd61..330957298c4b 100644 --- a/components/link.js +++ b/components/link.js @@ -5,6 +5,15 @@ import i18nPaths from "../lib/i18nPaths"; const LinkComponent = ({ children, locale, ...props }) => { const router = useRouter(); + + if (!router) { + return ( + + {children} + + ); + } + const { pathname, query, asPath } = router; // Detect current language From 4bb2f3b7124588bdc123e057e83955e9c1660bbf Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Thu, 28 Sep 2023 17:36:42 +0530 Subject: [PATCH 03/14] Enable i18n Signed-off-by: Ansh Goyal --- components/navigation/NavBar.js | 11 +++++------ pages/index.js | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index ae30f472933c..bb4fe9de1de2 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -72,10 +72,9 @@ export default function NavBar({ router.push(href); }; - // To be enabled on the last PR - // useEffect(() => { - // changeLanguage(browserLanguageDetector(), false); - // }, []); + useEffect(() => { + changeLanguage(browserLanguageDetector(), false); + }, []); function outsideClick(menu) { if (open !== menu) return; @@ -180,14 +179,14 @@ export default function NavBar({ {/* // Language Picker Component */} - {/* { changeLanguage(value.toLowerCase(), true); }} className="" selected={i18n.language.toLocaleUpperCase()} - /> */} + /> diff --git a/pages/index.js b/pages/index.js index 67f9185d4923..0069a28a90fd 100644 --- a/pages/index.js +++ b/pages/index.js @@ -27,8 +27,8 @@ import NewsroomSection from '../components/newsroom/NewsroomSection' import { languageDetection } from "../lib/i18n"; function HomePage() { - //To be enabled in a future PR - //languageDetection(); + + languageDetection(); return ( <> From 13a375ec42aa83b6c3eabc43fa2f7993a9efa3ca Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Thu, 28 Sep 2023 17:47:38 +0530 Subject: [PATCH 04/14] Fix type error Signed-off-by: Ansh Goyal --- components/navigation/NavBar.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index bb4fe9de1de2..c627b9e344f1 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -41,7 +41,7 @@ export default function NavBar({ const changeLanguage = async (locale, langPicker) => { // Verifies if the language change is from langPicker or the browser-api - if(langPicker){ + if (langPicker) { localStorage.setItem('i18nLang', locale); } @@ -185,7 +185,12 @@ export default function NavBar({ changeLanguage(value.toLowerCase(), true); }} className="" - selected={i18n.language.toLocaleUpperCase()} + selected={() => { + if (i18n.language) { + return i18n.language.toLocaleUpperCase(); + } + return "EN"; + }} /> From ba9e97aa0da0d51c0fa6b3f83b147dcd3ee5345d Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Mon, 9 Oct 2023 20:45:27 +0530 Subject: [PATCH 05/14] change select value Signed-off-by: Ansh Goyal --- components/navigation/NavBar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index c627b9e344f1..e9449ca89f5f 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -185,7 +185,7 @@ export default function NavBar({ changeLanguage(value.toLowerCase(), true); }} className="" - selected={() => { + value={() => { if (i18n.language) { return i18n.language.toLocaleUpperCase(); } From c6d53c87307bc64932c7e686d6607792558379f2 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Wed, 27 Dec 2023 09:10:52 +0530 Subject: [PATCH 06/14] make changes to LanguageSelect Signed-off-by: Ansh Goyal --- components/languageSelector/LanguageSelect.js | 2 +- components/navigation/NavBar.js | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/components/languageSelector/LanguageSelect.js b/components/languageSelector/LanguageSelect.js index b8d931a7d6f2..d9ba4f549536 100644 --- a/components/languageSelector/LanguageSelect.js +++ b/components/languageSelector/LanguageSelect.js @@ -12,7 +12,7 @@ export default function LanguageSelect({ value={selected} > {options.map((option, index) => ( - ))} diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index 3e2d5e665000..96695cced249 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -22,9 +22,10 @@ import { import browserLanguageDetector from "../../lib/browserLanguageDetector"; const isMobile = isMobileDevice(); -const uniqueLangs = [...new Set(["EN", "DE"])].map((repo) => ({ - key: repo, - text: repo, +const uniqueLangs = ["EN", "DE"].map((lang) => ({ + key: lang, + text: lang, + value: lang })); export default function NavBar({ @@ -184,12 +185,7 @@ export default function NavBar({ changeLanguage(value.toLowerCase(), true); }} className="" - value={() => { - if (i18n.language) { - return i18n.language.toLocaleUpperCase(); - } - return "EN"; - }} + selected={i18n.language ? i18n.language.toUpperCase() : "EN"} /> From c308f235bd810820c874df1fa6deeae29cdaeed7 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Fri, 2 Feb 2024 23:42:04 +0530 Subject: [PATCH 07/14] add changes Signed-off-by: Ansh Goyal --- components/navigation/NavBar.js | 20 +++++++++++++++----- lib/i18nPaths.js | 2 ++ 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index 96695cced249..be7f3bc44e87 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -20,13 +20,9 @@ import { useTranslation, } from "../../lib/i18n"; import browserLanguageDetector from "../../lib/browserLanguageDetector"; +import i18nPaths from "../../lib/i18nPaths"; const isMobile = isMobileDevice(); -const uniqueLangs = ["EN", "DE"].map((lang) => ({ - key: lang, - text: lang, - value: lang -})); export default function NavBar({ className = '', @@ -38,6 +34,20 @@ export default function NavBar({ const [mobileMenuOpen, setMobileMenuOpen] = useState(); const { i18n } = useTranslation(); + const getUniqueLangs = () => { + let pathnameWithoutLocale = pathname; + if (pathname && pathname.includes("/[lang]")) { + pathnameWithoutLocale = pathname.replace("/[lang]", ""); + } + let uniqueLangs = Object.keys(i18nPaths).filter(lang => i18nPaths[lang].includes(pathnameWithoutLocale)).map(lang => lang.toUpperCase()); + return uniqueLangs.length === 0 ? ["EN"] : uniqueLangs; + } + const uniqueLangs = getUniqueLangs().map((lang) => ({ + key: lang, + text: lang, + value: lang + })); + const changeLanguage = async (locale, langPicker) => { // Verifies if the language change is from langPicker or the browser-api diff --git a/lib/i18nPaths.js b/lib/i18nPaths.js index b527ee54881f..138b598cea6f 100644 --- a/lib/i18nPaths.js +++ b/lib/i18nPaths.js @@ -1,8 +1,10 @@ const i18nPaths = { en: [ + "", //Homepage Route "/tools/cli" ], de: [ + "", //Homepage Route "/tools/cli" ] }; From fd28f053e7b9ccda06173b059e5590aae5995a97 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Sun, 4 Feb 2024 11:34:08 +0530 Subject: [PATCH 08/14] add comments and fix router Signed-off-by: Ansh Goyal --- components/link.js | 10 +- components/navigation/MenuBlocks.js | 1 - components/navigation/NavBar.js | 8 + pages/index.js | 261 +--------------------------- 4 files changed, 24 insertions(+), 256 deletions(-) diff --git a/components/link.js b/components/link.js index 330957298c4b..053277db8c98 100644 --- a/components/link.js +++ b/components/link.js @@ -6,6 +6,7 @@ import i18nPaths from "../lib/i18nPaths"; const LinkComponent = ({ children, locale, ...props }) => { const router = useRouter(); + // If there is no router available (e.g., during server-side rendering & cypress tests), render a standard Link if (!router) { return ( @@ -16,13 +17,16 @@ const LinkComponent = ({ children, locale, ...props }) => { const { pathname, query, asPath } = router; - // Detect current language + // Detect current language based on the path or query parameter const slug = asPath.split("/")[1]; const langSlug = languages.includes(slug) && slug; const language = query.lang || langSlug || defaultLanguage; let href = props.href || pathname; + /* + If explicit href is provided, and the language-specific paths for the current language do not include the href, or if the href starts with "http", render a standard Link + */ if ((props.href && i18nPaths[language] && !i18nPaths[language].includes(href)) || href.includes("http", 0)) { return ( @@ -31,10 +35,13 @@ const LinkComponent = ({ children, locale, ...props }) => { ); } + // If a locale is provided, update the href with the locale if (locale) { if (props.href) { href = `/${locale}${href}`; } else { + // If the current path starts with "/404", update href to be the root path with the locale + // Otherwise, replace "[lang]" placeholder with the locale if (pathname.startsWith("/404")) { href = `/${locale}`; } else { @@ -42,6 +49,7 @@ const LinkComponent = ({ children, locale, ...props }) => { } } } else { + // If no locale is provided, update the href with the current language or keep it as is if (language) { href = `/${language}${href}`; } else { diff --git a/components/navigation/MenuBlocks.js b/components/navigation/MenuBlocks.js index 02689ac2f049..f9caa326820a 100644 --- a/components/navigation/MenuBlocks.js +++ b/components/navigation/MenuBlocks.js @@ -1,7 +1,6 @@ import LinkComponent from '../link'; import Paragraph from '../typography/Paragraph'; import Label from './Label' -import Link from 'next/link' import { useRouter } from 'next/router'; diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index be7f3bc44e87..670fdfa639d6 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -36,10 +36,16 @@ export default function NavBar({ const getUniqueLangs = () => { let pathnameWithoutLocale = pathname; + + // Check if the pathname includes "/[lang]", if so, replace it with an empty string if (pathname && pathname.includes("/[lang]")) { pathnameWithoutLocale = pathname.replace("/[lang]", ""); } + + // Filter unique languages based on i18nPaths that include the modified pathnameWithoutLocale let uniqueLangs = Object.keys(i18nPaths).filter(lang => i18nPaths[lang].includes(pathnameWithoutLocale)).map(lang => lang.toUpperCase()); + + // If no unique languages are found, default to ["EN"] return uniqueLangs.length === 0 ? ["EN"] : uniqueLangs; } const uniqueLangs = getUniqueLangs().map((lang) => ({ @@ -82,6 +88,8 @@ export default function NavBar({ router.push(href); }; + // First param: Passes the language based on the browser's defalt language + // Second param: Prevents the language change from being saved in the local storage useEffect(() => { changeLanguage(browserLanguageDetector(), false); }, []); diff --git a/pages/index.js b/pages/index.js index 0069a28a90fd..a16734288475 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,262 +1,15 @@ -import Container from '../components/layout/Container' -import NavBar from '../components/navigation/NavBar' -import Hero from '../components/Hero' -import NewsletterSubscribe from '../components/NewsletterSubscribe' -import Sponsors from '../components/sponsors/Sponsors' -import Head from '../components/Head' -import Slack from '../components/slack' -import Button from '../components/buttons/Button' -import Calendar from '../components/Calendar' -import AdidasLogo from '../components/logos/Adidas' -import AxwayLogo from '../components/logos/Axway' -import SlackLogo from '../components/logos/Slack' -import SalesforceLogo from '../components/logos/Salesforce' -import SapLogo from '../components/logos/SAP' -import Testimonial from '../components/Testimonial' -import Heading from '../components/typography/Heading' -import Paragraph from '../components/typography/Paragraph' -import TextLink from '../components/typography/TextLink' -import GoldSponsors from '../components/sponsors/GoldSponsors' -import SilverSponsors from '../components/sponsors/SilverSponsors' -import SupportUs from '../components/SupportUs/SupportUs' -import StickyNavbar from '../components/navigation/StickyNavbar' -import GoogleCalendarButton from '../components/buttons/GoogleCalendarButton'; -import ICSFileButton from '../components/buttons/ICSFileButton'; -import SubscribeButton from '../components/buttons/SubscribeButton'; -import NewsroomSection from '../components/newsroom/NewsroomSection' +import { useState } from "react"; import { languageDetection } from "../lib/i18n"; function HomePage() { - + const loader = 'img/loaders/loader.png'; // preloader image for the tools languageDetection(); - return ( - <> - - - - - -
- - - - - - - Adopted by the world leading brands - - - These brands are already using AsyncAPI in production. Is your company using AsyncAPI and wants to be included in this list? - - Let us know here! - - -
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
- -
- - - -
- - - - Join our great community! - - - We're a community of great people who are passionate about AsyncAPI and event-driven architectures. - -
- -
-
- -
-
-
- - Join our Slack workspace - - - We welcome everyone to join our Slack workspace. If you have a question on how to use AsyncAPI, want to contribute, or simply want to say hello 👋  you're welcome to join us. We're nice people 🙂 - -
-
-
-
-
- -
-
- -
-
-
- - Join our public meetings - - - AsyncAPI hosts different meetings every week. They are focused on different topic, sometimes purely technical and sometimes about community building. Pick one and join us! - - - Learn more about our meetings. - - -
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
-
-
-
- - - -
-
- - -
- - - Platinum Sponsors - - - - - - - Gold Sponsors - - - - - - - Silver Sponsors - - - - - - - - Want to Sponsor Us? - - - These great organizations are already supporting AsyncAPI. Want to become a sponsor? - - Support us! - - - -
- - - Supported by - - - The following companies support us by letting us use their products for free. Interested in supporting us too? - - Email us - for more info. - - - - - - What the experts are saying - -
    - - - - -
-
-
- + return ( +
+ +
Loading...
+
) } From 64accd065b738f0cfba5d1d081d0661241139978 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Sun, 4 Feb 2024 11:35:46 +0530 Subject: [PATCH 09/14] remove unused import Signed-off-by: Ansh Goyal --- pages/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/pages/index.js b/pages/index.js index a16734288475..546c7345025b 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,4 +1,3 @@ -import { useState } from "react"; import { languageDetection } from "../lib/i18n"; function HomePage() { From c3d72f0d05a8a6df8c87e0189f87855bb48fa476 Mon Sep 17 00:00:00 2001 From: Akshat Nema Date: Sun, 4 Feb 2024 13:29:47 +0530 Subject: [PATCH 10/14] updated js doc comments --- components/navigation/NavBar.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index 670fdfa639d6..73b42a1263a3 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -91,6 +91,10 @@ export default function NavBar({ // First param: Passes the language based on the browser's defalt language // Second param: Prevents the language change from being saved in the local storage useEffect(() => { + /** + * First param: Passes the language based on the browser's default language + * Second param: Prevents the language change from being saved in the local storage + */ changeLanguage(browserLanguageDetector(), false); }, []); From c64e922135a28b3682cb9f5319878ee073ad629e Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Sun, 4 Feb 2024 14:38:14 +0530 Subject: [PATCH 11/14] update jsdoc comments Signed-off-by: Ansh Goyal --- components/navigation/NavBar.js | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index 670fdfa639d6..617a8de9865a 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -34,6 +34,11 @@ export default function NavBar({ const [mobileMenuOpen, setMobileMenuOpen] = useState(); const { i18n } = useTranslation(); + /** + * Retrieves unique language options based on the current path and i18nPaths configuration. + * + * @returns {string[]} - An array of unique language options in uppercase. + */ const getUniqueLangs = () => { let pathnameWithoutLocale = pathname; @@ -48,12 +53,23 @@ export default function NavBar({ // If no unique languages are found, default to ["EN"] return uniqueLangs.length === 0 ? ["EN"] : uniqueLangs; } + const uniqueLangs = getUniqueLangs().map((lang) => ({ key: lang, text: lang, value: lang })); + /** + * Changes the language and updates the URL accordingly. + * + * @async + * @param {string} locale - The new locale/language to set. + * @param {boolean} langPicker - Indicates whether the change is from the language picker. + * If true, stores the language in local storage. + * @returns {Promise} - A promise representing the completion of the language change. + * @throws {Error} - If an error occurs during the language change process. + */ const changeLanguage = async (locale, langPicker) => { // Verifies if the language change is from langPicker or the browser-api @@ -88,8 +104,12 @@ export default function NavBar({ router.push(href); }; - // First param: Passes the language based on the browser's defalt language - // Second param: Prevents the language change from being saved in the local storage + /* + useEffect to set the initial language on component mount + Detects the user's preferred language using browserLanguageDetector + and updates the language without affecting the localStorage. + This ensures the components renders with the correct initial language. + */ useEffect(() => { changeLanguage(browserLanguageDetector(), false); }, []); From 4642b9a4148ec209ab82eff415b47699a7ce0446 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Tue, 6 Feb 2024 18:25:42 +0530 Subject: [PATCH 12/14] add navbar and centered logo Signed-off-by: Ansh Goyal --- components/navigation/NavBar.js | 16 ++++++---------- pages/index.js | 19 +++++++++++++++---- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index fe68b8c3cd4f..17423d6f4386 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -104,17 +104,13 @@ export default function NavBar({ router.push(href); }; - /* - useEffect to set the initial language on component mount - Detects the user's preferred language using browserLanguageDetector - and updates the language without affecting the localStorage. - This ensures the components renders with the correct initial language. - */ + /** + * useEffect to set the initial language on component mount + * Detects the user's preferred language using browserLanguageDetector + * and updates the language without affecting the localStorage. + * This ensures the components renders with the correct initial language. + */ useEffect(() => { - /** - * First param: Passes the language based on the browser's default language - * Second param: Prevents the language change from being saved in the local storage - */ changeLanguage(browserLanguageDetector(), false); }, []); diff --git a/pages/index.js b/pages/index.js index 546c7345025b..c5bc7fed2b39 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,3 +1,6 @@ +import NavBar from '../components/navigation/NavBar' +import Head from '../components/Head' +import StickyNavbar from '../components/navigation/StickyNavbar' import { languageDetection } from "../lib/i18n"; function HomePage() { @@ -5,10 +8,18 @@ function HomePage() { languageDetection(); return ( -
- -
Loading...
-
+ <> + + + + +
+
+ +
Loading...
+
+
+ ) } From 2f07331fdd3a20caeaa89dd04c5af68c142db719 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Tue, 6 Feb 2024 22:34:53 +0530 Subject: [PATCH 13/14] add infinite loop fix Signed-off-by: Ansh Goyal --- components/navigation/NavBar.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index 17423d6f4386..bf7079f845f6 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -104,16 +104,6 @@ export default function NavBar({ router.push(href); }; - /** - * useEffect to set the initial language on component mount - * Detects the user's preferred language using browserLanguageDetector - * and updates the language without affecting the localStorage. - * This ensures the components renders with the correct initial language. - */ - useEffect(() => { - changeLanguage(browserLanguageDetector(), false); - }, []); - function outsideClick(menu) { if (open !== menu) return; setOpen(null); From ca1e82b70cc99ce75b3595c4433cb80a6f641991 Mon Sep 17 00:00:00 2001 From: akshatnema Date: Wed, 7 Feb 2024 17:09:44 +0530 Subject: [PATCH 14/14] update UI of LanguageSelect --- components/languageSelector/LanguageSelect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/languageSelector/LanguageSelect.js b/components/languageSelector/LanguageSelect.js index d9ba4f549536..99d8a68babaf 100644 --- a/components/languageSelector/LanguageSelect.js +++ b/components/languageSelector/LanguageSelect.js @@ -8,7 +8,7 @@ export default function LanguageSelect({ return (