You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to simply override the default i18nState values when initializing the reducer?
I would need to override the lang property of it based on another value stored in a configuration file.
i've found this in the docs, but nothing on how to override the defaults. What i'm thinking now is to just manually call the action to set the language after it has been initialized, but would like to know if there is a better more direct way to do it already while initializing.
import {otherreducers} from "./Yourproject"
import {i18nState} from "redux-i18n"
// with Immutable.js:
import {i18nState} from "redux-i18n/immutable"
const appReducer = combineReducers({
otherreducers,
i18nState //here I would like to somehow pass the default lang value, if possible
})
The text was updated successfully, but these errors were encountered:
Is there a way to simply override the default i18nState values when initializing the reducer?
I would need to override the lang property of it based on another value stored in a configuration file.
i've found this in the docs, but nothing on how to override the defaults. What i'm thinking now is to just manually call the action to set the language after it has been initialized, but would like to know if there is a better more direct way to do it already while initializing.
The text was updated successfully, but these errors were encountered: