@wimdental/i18n
Version:
Simple module to localize the React using simple tools.
24 lines (21 loc) • 423 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setLanguage = setLanguage;
/**
* Action types
*/
var actionTypes = exports.actionTypes = {
SET_LANGUAGE: '@wimdental/i18n/SET_LANGUAGE'
};
/**
* Se language action creator
* @param {*} language
*/
function setLanguage(language) {
return {
type: actionTypes.SET_LANGUAGE,
payload: language
};
}