How to use the utils.t function in utils

To help you get started, we’ve selected a few utils 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 gitpoint / git-point / src / components / issue-description.component.js View on Github external
navigateToCommitList = () => {
    const { commits, locale } = this.props;

    if (commits.length > 1) {
      this.props.navigation.navigate('CommitList', {
        title: t('Commits', locale),
        commits,
        locale,
      });
    } else {
      this.props.navigation.navigate('Commit', {
        commit: commits[0],
        title: commits[0].sha.substring(0, 7),
      });
    }
  };
github gitpoint / git-point / src / repository / screens / repository.screen.js View on Github external
onPress={() =>
                    this.props.navigation.navigate('CommitList', {
                      commits,
                      title: t('Commits', locale),
                      locale,
                    })
                  }
github gitpoint / git-point / src / repository / screens / repository.screen.js View on Github external
buttonAction={() => {
                  if (openIssues.length > 0) {
                    navigation.navigate('IssueList', {
                      title: t('Issues', locale),
                      searchType: 0,
                      query: '',
                      repository,
                    });
                  } else {
                    navigation.navigate('NewIssue', {
                      title: t('New Issue', locale),
                      repository,
                    });
                  }
                }}
              >
github gitpoint / git-point / src / auth / screens / login.screen.js View on Github external
constructor(props) {
    super(props);

    this.state = {
      code: null,
      modalVisible: false,
      cancelDisabled: false,
      showLoader: true,
      loaderText: t('Connecting to GitHub...', props.locale),
      asyncStorageChecked: false,
    };
  }
github gitpoint / git-point / src / auth / screens / user-options.screen.js View on Github external
componentWillReceiveProps(nextState) {
    if (nextState.locale !== this.props.locale) {
      this.setState({
        updateText: updateText(nextState.locale).check,
      });

      const navigationParams = NavigationActions.setParams({
        params: {
          title: t('Options', nextState.locale),
        },
        key: nextState.navigation.state.key,
      });

      nextState.navigation.dispatch(navigationParams);
    }
  }

utils

Fast, generic JavaScript/node.js utility functions.

MIT
Latest version published 9 years ago

Package Health Score

44 / 100
Full package analysis