fix(v2): remove useless console log (#3921)

This commit is contained in:
Sébastien Lorber 2020-12-14 19:53:44 +01:00 committed by GitHub
parent 1db0277d36
commit b79568fff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ export default function LocaleDropdownNavbarItem({
return localeConfigs[locale].label;
}
// TODO Docusaurus could offer some APIs to we should probably
// TODO Docusaurus expose this unlocalized baseUrl more reliably
const baseUrlUnlocalized =
currentLocale === defaultLocale
? baseUrl
@ -41,15 +41,6 @@ export default function LocaleDropdownNavbarItem({
const items = locales.map((locale) => {
const to = `${getLocalizedBaseUrl(locale)}${pathnameSuffix}`;
console.log({
locale,
to,
pathname,
baseUrl,
baseUrlUnlocalized,
pathnameSuffix,
});
return {
isNavLink: true,
label: getLocaleLabel(locale),