UNPKG
@wimdental/i18n
Version:
latest (1.0.5)
1.0.5
Simple module to localize the React using simple tools.
wimdental/wimdental-i18n
@wimdental/i18n
/
src
/
i18n
/
actions.js
18 lines
(16 loc)
•
305 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** * Action types */
export
const
actionTypes = {
SET_LANGUAGE
:
'@wimdental/i18n/SET_LANGUAGE'
}
/** * Se language action creator *
@param
{
*
} language */
export
function
setLanguage
(
language
){
return
{
type
: types.
SET_LANGUAGE
,
payload
: language } }