Download wp-calypso/client/landing/stepper/hooks/use-flow-locale.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 211 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/hooks/use-flow-locale.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/landing/stepper/hooks/use-flow-locale.ts
-
curl -L -o use-flow-locale.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/hooks/use-flow-locale.ts
211 Bytes
| import { useSelector } from 'calypso/state'; | |
| import getCurrentLocaleSlug from 'calypso/state/selectors/get-current-locale-slug'; | |
| export function useFlowLocale() { | |
| return useSelector( getCurrentLocaleSlug ); | |
| } | |