|
Download wp-calypso/client/state/ui/language/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 491 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/language/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/language/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/language/README.md
491 Bytes
| # Language UI State | |
| ## Actions | |
| ###`setLocale()` | |
| Change the locale of the application and, optionally, the locale variant of the application. | |
| ## Reducers | |
| The included reducers add the following keys to the global state tree, under `ui.language`: | |
| ###`localeSlug` | |
| The value of the current locale slug ('en', 'fr'...) | |
| ###`localeVariant` | |
| The locale variant refers to a subset of the locale, for example formal German (Sie) ('de_formal'). | |
| ###`isRtl` | |
| The isRtl state of the ui language. | |