export type SlateState = { lang : string ; } ; const initialState = { lang : '' , } ; export const slate = { state : initialState , reducers : { setLang ( state , lang ) { state . lang = lang ; return state ; } , } , } ;