Skip to content

Commit

Permalink
fix: fix translation for explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Jan 16, 2025
1 parent 63933bb commit dd0a742
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/play/PlayExplanation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next';
import { Alert, AlertTitle, Typography } from '@mui/material';

import { EXPLANATION_PLAY_CY } from '../../config/selectors';
import { QUIZ_TRANSLATIONS } from '../../langs/constants';
import { QuestionData } from '../types/types';

type Props = {
Expand All @@ -21,7 +22,7 @@ const PlayExplanation = ({ currentQuestionData, showCorrection }: Props) => {
<Alert severity="info" sx={{ width: '100%', mt: 4 }}>
<AlertTitle>
<Typography variant="h6" mb={1}>
{t('Explanations')}
{t(QUIZ_TRANSLATIONS.EXPLANATIONS_LABEL)}
</Typography>
</AlertTitle>

Expand Down
2 changes: 1 addition & 1 deletion src/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"HINTS_ALERT_TITLE": "Do you need some hints?",
"EXPLANATIONS_TITLE": "Explanation",
"EXPLANATIONS_SUB_TITLE": "Enter an explanation here, which will be displayed when there are no more attempts or when a correct answer is given.",
"EXPLANATIONS_LABEL": "Explanation",
"EXPLANATIONS_LABEL": "Explanations",
"PREV_QUESTION_BTN": "Previous",
"NEXT_QUESTION_BTN": "Next",
"QUESTION_STEPPER_NAV_TITLE": "Quiz Navigation",
Expand Down
2 changes: 1 addition & 1 deletion src/langs/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"HINTS_ALERT_TITLE": "Avez-vous besoins d'indices ?",
"EXPLANATIONS_TITLE": "Explication",
"EXPLANATIONS_SUB_TITLE": "Saisissez ici une explication qui sera affichée lorsqu'il n'y a plus d'essais ou lorsqu'une réponse correcte est donnée.",
"EXPLANATIONS_LABEL": "Explication",
"EXPLANATIONS_LABEL": "Explications",
"PREV_QUESTION_BTN": "Précédent",
"NEXT_QUESTION_BTN": "Suivant",
"QUESTION_STEPPER_NAV_TITLE": "Navigation du Quiz",
Expand Down

0 comments on commit dd0a742

Please sign in to comment.