Download wp-calypso/client/state/i18n/language-names/reducer.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/i18n/language-names/reducer.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/i18n/language-names/reducer.js
-
curl -L -o reducer.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/i18n/language-names/reducer.js
341 Bytes
| import { I18N_LANGUAGE_NAMES_ADD } from 'calypso/state/action-types'; | |
| import { combineReducers } from 'calypso/state/utils'; | |
| export const items = ( state = null, action ) => { | |
| switch ( action.type ) { | |
| case I18N_LANGUAGE_NAMES_ADD: | |
| return action.items; | |
| default: | |
| return state; | |
| } | |
| }; | |
| export default combineReducers( { | |
| items, | |
| } ); | |