Download next.js/packages/next/src/client/normalize-locale-path.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/normalize-locale-path.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/client/normalize-locale-path.ts
-
curl -L -o normalize-locale-path.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/normalize-locale-path.ts
435 Bytes
| import type { normalizeLocalePath as Fn } from '../shared/lib/i18n/normalize-locale-path' | |
| export const normalizeLocalePath: typeof Fn = (pathname, locales) => { | |
| if (process.env.__NEXT_I18N_SUPPORT) { | |
| return ( | |
| require('../shared/lib/i18n/normalize-locale-path') as typeof import('../shared/lib/i18n/normalize-locale-path') | |
| ).normalizeLocalePath(pathname, locales) | |
| } | |
| return { pathname, detectedLocale: undefined } | |
| } | |