Client - store language w/ redux
This commit is contained in:
@ -57,6 +57,13 @@ const gpx = (state = initial.gpx, action) => {
|
||||
return state
|
||||
}
|
||||
|
||||
const language = (state = initial.language, action) => {
|
||||
if (action.type === 'SET_LANGUAGE') {
|
||||
return action.language
|
||||
}
|
||||
return state
|
||||
}
|
||||
|
||||
const loading = (state = initial.loading, action) => {
|
||||
if (action.type === 'SET_LOADING') {
|
||||
return action.loading
|
||||
@ -124,6 +131,7 @@ export default history =>
|
||||
calendarActivities,
|
||||
chartData,
|
||||
gpx,
|
||||
language,
|
||||
loading,
|
||||
message,
|
||||
messages,
|
||||
|
@ -3,6 +3,7 @@ const emptyData = {
|
||||
}
|
||||
|
||||
export default {
|
||||
language: 'en',
|
||||
message: '',
|
||||
messages: [],
|
||||
user: {
|
||||
|
Reference in New Issue
Block a user