mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-29 21:42:50 +00:00
fix(v2): remove useless console log (#3921)
This commit is contained in:
parent
1db0277d36
commit
b79568fff9
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue