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