How to use the i18n/Translate function in i18n

To help you get started, we’ve selected a few i18n 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 antoinejaussoin / retro-board / app / modules / board / posts / components / SessionName.jsx View on Github external
sessionName: null,
  rename: noop,
  strings: {
    optionsTab: {
      input: 'Enter a name for your session',
    },
    defaultSessionName: 'My Retrospective',
  },
};

const decorators = flow([
  connect(
    stateToProps,
    actionsToProps,
  ),
  translate('Join'),
  translate('SessionName'),
]);

export default decorators(SessionName);
github antoinejaussoin / retro-board / app / modules / app / header / invite / index.jsx View on Github external
strings: {
    inviteButton: 'Invite',
    dialog: {
      title: 'Invite people to your retrospective',
      text: 'To invite people to your retrospected session, simply send them ' + 'the following URL',
      copyButton: 'Copy URL to Clipboard',
    },
  },
};

const decorators = flow([
  connect(
    stateToProps,
    actionsToProps,
  ),
  translate('Invite'),
]);

export default decorators(Invite);
github antoinejaussoin / retro-board / app / modules / configuration / components / LeaveButton.jsx View on Github external
strings: PropTypes.object,
};

LeaveButton.defaultProps = {
  onClick: noop,
  strings: {
    leave: 'Leave',
  },
};

const decorators = flow([
  connect(
    null,
    actionsToProps,
  ),
  translate('Header'),
]);

export default decorators(LeaveButton);
github antoinejaussoin / retro-board / app / modules / configuration / components / Clients.jsx View on Github external
);

Clients.propTypes = {
  clients: PropTypes.array,
  strings: PropTypes.object,
};

Clients.defaultProps = {
  clients: [],
  strings: {
    header: 'Kindly joining us right now:',
  },
};

const decorators = flow([connect(stateToProps), translate('Clients')]);

export default decorators(Clients);
github antoinejaussoin / retro-board / app / modules / user / components / LogoutButton.jsx View on Github external
strings: PropTypes.object,
};

LogoutButton.defaultProps = {
  onClick: noop,
  strings: {
    logout: 'Logout',
  },
};

const decorators = flow([
  connect(
    null,
    actionsToProps,
  ),
  translate('Header'),
]);

export default decorators(LogoutButton);
github antoinejaussoin / retro-board / app / modules / board / posts / components / SummaryBoard.jsx View on Github external
SummaryBoard.defaultProps = {
  wellPosts: [],
  notWellPosts: [],
  ideasPosts: [],
  strings: {
    notWellQuestion: 'What could be improved?',
    wellQuestion: 'What went well?',
    ideasQuestion: 'A brilliant idea to share?',
    vote: 'vote',
    votes: 'votes',
    noPosts: 'There are no posts to display',
  },
};

const decorators = flow([connect(stateToProps), translate('PostBoard'), translate('SummaryBoard'), translate('Post')]);

export default decorators(SummaryBoard);
github antoinejaussoin / retro-board / app / components / SessionTile.jsx View on Github external
session: PropTypes.object.isRequired,
  languageInfo: PropTypes.object,
  strings: PropTypes.object,
  onClick: PropTypes.func,
};

SessionTile.defaultProps = {
  session: null,
  languageInfo: null,
  onClick: noop,
  strings: {
    defaultSessionName: 'My Retrospective',
  },
};

const decorators = flow([connect(stateToProps), translate('SessionName')]);

export default decorators(SessionTile);
github antoinejaussoin / retro-board / app / modules / configuration / components / SummaryModeSwitch.jsx View on Github external
};

SummaryModeSwitch.defaultProps = {
  enabled: false,
  onChange: noop,
  strings: {
    summaryMode: 'Summary Mode',
  },
};

const decorators = flow([
  connect(
    stateToProps,
    actionsToProps,
  ),
  translate('Header'),
]);

export default decorators(SummaryModeSwitch);
github antoinejaussoin / retro-board / app / modules / app / header / components / OpenDrawerButton.jsx View on Github external
OpenDrawerButton.propTypes = {
  displayDrawerButton: PropTypes.bool,
  onClick: PropTypes.func,
};

OpenDrawerButton.defaultProps = {
  displayDrawerButton: false,
  onClick: noop,
};

const decorators = flow([
  connect(
    stateToProps,
    actionsToProps,
  ),
  translate('Header'),
]);

export default decorators(OpenDrawerButton);
github antoinejaussoin / retro-board / app / modules / board / posts / components / PostBoard.jsx View on Github external
like: noop,
  unlike: noop,
  edit: noop,
  strings: {
    notWellQuestion: 'What could be improved?',
    wellQuestion: 'What went well?',
    ideasQuestion: 'A brilliant idea to share?',
  },
};

const decorators = flow([
  connect(
    stateToProps,
    actionsToProps,
  ),
  translate('PostBoard'),
]);

export default decorators(PostBoard);