diff --git a/client/src/client-only-routes/ShowCertification.js b/client/src/client-only-routes/ShowCertification.js index 192a13ad0ad..e40d01f453b 100644 --- a/client/src/client-only-routes/ShowCertification.js +++ b/client/src/client-only-routes/ShowCertification.js @@ -4,7 +4,6 @@ import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; -import format from 'date-fns/format'; import { Grid, Row, Col, Image, Button } from '@freecodecamp/react-bootstrap'; import ShowProjectLinks from './ShowProjectLinks'; @@ -28,11 +27,15 @@ import { certMap } from '../../src/resources/certAndProjectMap'; import { createFlashMessage } from '../components/Flash/redux'; import standardErrorMessage from '../utils/standardErrorMessage'; import reallyWeirdErrorMessage from '../utils/reallyWeirdErrorMessage'; +import { langCodes } from '../../i18n/allLangs'; +import { clientLocale } from '../../../config/env.json'; import RedirectHome from '../components/RedirectHome'; import { Loader, Spacer } from '../components/helpers'; import { isEmpty } from 'lodash'; +const localeCode = langCodes[clientLocale]; + const propTypes = { cert: PropTypes.shape({ username: PropTypes.string, @@ -326,7 +329,13 @@ const ShowCertification = props => {