File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { useTheme } from '@node-core/doc-kit/src/generators/web/ui/hooks/useThem
88import { useEffect , useState } from 'preact/hooks' ;
99import { useIntl } from 'react-intl' ;
1010
11- import localizeLink from '../../util/link' ;
11+ import { localizeLink } from '../../util/link' ;
1212import { navigation } from '../../site.json' with { type : 'json' } ;
1313
1414import Logo from '#theme/Logo' ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { defaultLocale } from '../site.json' with { type: 'json' };
77 * @param {string|null } locale - The locale to apply to the link.
88 * @returns {string } - The localized link.
99 */
10- const localizeLink = ( link , locale ) => {
10+ export const localizeLink = ( link , locale ) => {
1111 if (
1212 typeof document === 'undefined' ||
1313 ! link . startsWith ( '/' ) ||
@@ -24,5 +24,3 @@ const localizeLink = (link, locale) => {
2424
2525 return localizedLink ;
2626} ;
27-
28- export default { localizeLink } ;
You can’t perform that action at this time.
0 commit comments