How to use the react-i18next.translate function in react-i18next

To help you get started, we’ve selected a few react-i18next 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 prooph / event-store-mgmt-ui / src / MessageFlow.tsx View on Github external
import {Cytoscape} from "./MessageFlow/containers";
import {loadMessageFlow} from "./core/localStorage";

interface MessageFlowProps extends RouteComponentProps<{ id: string }>, InjectedTranslateProps {
}

class MessageFlow extends React.Component{

    render(){
        return 
            
        ;
    }
}

export default translate('translation')(MessageFlow);
github cern-phone-apps / desktop-phone-app / src / auth / screens / LoginPage / LoginPage.js View on Github external
<h4>Login with your CERN account</h4>
                <button> ElectronService.setUserAsUnauthenticated()}
                &gt;
                  Logout
                </button>
              
            
          
        
      
    );
  }
}

export default translate('translations')(LoginPage);
github 36base / 36base.github.io / src / containers / Fairy / FairyDetail.jsx View on Github external
/&gt;
            
          
        
      
    );
  }
}

export default compose(
  translate(),
  withStyles(styles),
)(FairyDetail);
github thabart / SimpleIdentityServer / SimpleIdentityServer / src / Apis / ResourceManager / SimpleIdentityServer.ResourceManager.Host / ClientApp / components / login.js View on Github external
{(this.state.errorMessage !== null &amp;&amp; (
                                    <div style="{{">
                                        <strong>Danger !</strong> {this.state.errorMessage}
                                    </div>
                                ))}
                            
                        
                    
                
            
        );
    }
}

export default translate('common', { wait: process &amp;&amp; !process.release })(withRouter(Login));
github greymass / eos-voter / app / shared / components / Tools / Modal / Delegation.js View on Github external
validate={validate}
            wallet={wallet}
          />
        )}
        icon="microchip"
        onClose={onClose}
        openModal={openModal}
        settings={settings}
        system={system}
        title={t('tools_modal_delegation_header')}
      />
    );
  }
}

export default translate('tools')(ToolsModalDelegation);
github greymass / eos-voter / app / shared / components / Wallet / Language.js View on Github external
inverted="true"
      &gt;
        

      
    );
  }
}

export default translate('wallet')(WalletLanguage);
github greymass / eos-voter / app / modules / handler / components / Header.js View on Github external
content={blockchain.name}
                    size="small"
                    style={{ margin: 0 }}
                    textAlign="center"
                  /&gt;
                
              
            
          
        
      
    );
  }
}

export default translate('global')(PromptHeader);
github openpitrix / dashboard / src / pages / Dashboard / Users / index.jsx View on Github external
Card,
  Dialog,
  BreadCrumb
} from 'components/Layout';
import Status from 'components/Status';
import Toolbar from 'components/Toolbar';
import TimeShow from 'components/TimeShow';
import roles, { roleMap } from 'config/roles';
import routes, { toRoute } from 'routes';
import GroupCard from './GroupCard';

import styles from './index.scss';

const emailRegexp = '^[A-Za-z0-9._%-]+@([A-Za-z0-9-]+\\.)+[A-Za-z]{2,4}$';

@translate()
@inject(({ rootStore }) => ({
  userStore: rootStore.userStore
}))
@observer
export default class Users extends Component {
  async componentDidMount() {
    const { userStore } = this.props;
    await userStore.fetchAll();
  }

  componentWillUnmount() {
    const { userStore } = this.props;
    userStore.reset();
  }

  changeSelect = value => {
github greymass / eos-voter / app / shared / components / Wallet / Modal / Content / Broadcast.js View on Github external
]}
              /&gt;
              
            
          )
        }
      
    );
  }
}

export default translate('transaction')(WalletModalContentBroadcast);
github bunqCommunity / bunqDesktop / src / react / Components / FileUpload / UploadFullscreen.jsx View on Github external
UploadFullscreen.defaultProps = {
    headlineText: "Upload a new avatar",
    buttonText: "Upload"
};

const mapStateToProps = state => {
    return {};
};

const mapDispatchToProps = dispatch => {
    return {
        openSnackbar: message => dispatch(openSnackbar(message))
    };
};

export default translate("translations")(
    connect(
        mapStateToProps,
        mapDispatchToProps
    )(UploadFullscreen)
);