Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Commit

Permalink
Translated progress indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
Weiguang Xiao committed Jul 23, 2019
1 parent 7abbadf commit 6bfa36b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions public/locales/en/ProgressIndicator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Prepare": "Prepare",
"Step-by-Step": "Step-by-Step",
"Challenge": "Challenge"
}
5 changes: 5 additions & 0 deletions public/locales/fr/ProgressIndicator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Prepare": "Préparer",
"Step-by-Step": "Étape par étape",
"Challenge": "Défi"
}
5 changes: 4 additions & 1 deletion src/frontend/common/ProgressIndicator.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import React from 'react';
import PropTypes from 'prop-types';
import { useTranslation } from 'react-i18next';

const ProgressIndicator = (props) => {
const { currentProgress } = props;
const progresses = ['Prepare', 'Step-by-Step', 'Challenge'];
const { t } = useTranslation('ProgressIndicator');

const progresses = [t('Prepare'), t('Step-by-Step'), t('Challenge')];

function StepListItem({ progName, progOId }) {
let classname = '';
Expand Down

0 comments on commit 6bfa36b

Please sign in to comment.