How to use react-localize-redux - 10 common examples

To help you get started, we’ve selected a few react-localize-redux examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ProofOfToss / proof-of-toss / src / pages / not_found / NotFound.js View on Github external
function mapPropsToState(state) {
  return {
    translate: getTranslate(state.locale)
  };
}
github ProofOfToss / proof-of-toss / src / pages / new_event / NewEvent.js View on Github external
function mapPropsToState(state) {
  return {
    translate: getTranslate(state.locale),
    isWhitelisted: state.user.isWhitelisted,
    balance: state.token.balance,
  };
}
github ProofOfToss / proof-of-toss / src / pages / admin / BasePage.js View on Github external
function mapPropsToState(state) {
  return {
    translate: getTranslate(state.locale),
    isWhitelisted: state.user.isWhitelisted
  };
}
github ProofOfToss / proof-of-toss / src / components / wallet / Wallet.js View on Github external
function mapPropsToState(state) {
  return {
    web3: state.web3.web3,
    currentAddress: state.user.address,
    balance: state.token.balance,
    translate: getTranslate(state.locale)
  };
}
github ProofOfToss / proof-of-toss / src / pages / wallet / ModalDeposit.js View on Github external
function mapPropsToState(state) {
  return {
    web3: state.web3.web3,
    currentAddress: state.user.address,
    translate: getTranslate(state.locale)
  };
}
github red-gold / react-social-network / src / components / findPeople / FindPeopleComponent.tsx View on Github external
const mapStateToProps = (state: any, ownProps: IFindPeopleComponentProps) => {
  const people = state.getIn(['user', 'people'])
  const hasMorePeople = state.getIn(['user', 'people', 'hasMoreData' ], true)
  const info: Map = state.getIn(['user', 'info'])
  return {
    translate: getTranslate(state.get('locale')),
    peopleInfo: info,
    hasMorePeople
  }
}
github red-gold / react-social-network / src / routes / HomeRouter.tsx View on Github external
const mapStateToProps = (state: Map, ownProps: IRouterProps) => {
  return {
    translate: getTranslate(state.get('locale')),
    currentLanguage: getActiveLanguage(state.get('locale')).code,
  }
}
github red-gold / react-social-network / src / containers / setting / SettingComponent.tsx View on Github external
const mapStateToProps = (state: any, ownProps: ISettingComponentProps) => {
  return {
    translate: getTranslate(state.get('locale'))
  }
}
github red-gold / react-social-network / src / containers / resetPassword / ResetPasswordComponent.tsx View on Github external
const mapStateToProps = (state: any, ownProps: IResetPasswordComponentProps) => {
  return {
    translate: getTranslate(state.get('locale')),
  }
}
github red-gold / react-social-network / src / containers / emailVerification / EmailVerificationComponent.tsx View on Github external
const mapStateToProps = (state: any, ownProps: IEmailVerificationComponentProps) => {
  return {
    translate: getTranslate(state.get('locale'))
  }
}

react-localize-redux

Localization library for handling translations in React

MIT
Latest version published 5 years ago

Package Health Score

45 / 100
Full package analysis

Popular react-localize-redux functions