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

Commit 6bfa36b

Browse files
author
Weiguang Xiao
committed
Translated progress indicator
1 parent 7abbadf commit 6bfa36b

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"Prepare": "Prepare",
3+
"Step-by-Step": "Step-by-Step",
4+
"Challenge": "Challenge"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"Prepare": "Préparer",
3+
"Step-by-Step": "Étape par étape",
4+
"Challenge": "Défi"
5+
}

src/frontend/common/ProgressIndicator.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3+
import { useTranslation } from 'react-i18next';
34

45
const ProgressIndicator = (props) => {
56
const { currentProgress } = props;
6-
const progresses = ['Prepare', 'Step-by-Step', 'Challenge'];
7+
const { t } = useTranslation('ProgressIndicator');
8+
9+
const progresses = [t('Prepare'), t('Step-by-Step'), t('Challenge')];
710

811
function StepListItem({ progName, progOId }) {
912
let classname = '';

0 commit comments

Comments
 (0)