Skip to content

Commit

Permalink
added translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreya Bhandari committed Sep 5, 2024
1 parent b8af95c commit 9db906c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/problem-layout/LessonSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class LessonSelection extends React.Component {
{this.state.preparedRemoveProgress ?
<Button className={classes.button} style={{ width: "100%" }} size="small"
onClick={this.removeProgress}
disabled={this.state.removedProgress}>{this.state.removedProgress ? "Progress Reset!" : "Are you sure?"}</Button> :
disabled={this.state.removedProgress}>{this.state.removedProgress ? translate('lessonSelection.reset') : translate('lessonSelection.aresure')}</Button> :
<Button className={classes.button} style={{ width: "100%" }} size="small"
onClick={this.prepareRemoveProgress}
disabled={this.state.preparedRemoveProgress}>{translate('lessonSelection.resetprogress')}</Button>}
Expand Down
4 changes: 3 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"select": "Please select a",
"course": "course",
"lessonplan": "lesson plan",
"onlyselect": "Select"
"onlyselect": "Select",
"aresure": "Are you sure?",
"reset": "Progress Reset!"
},
"problem":
{
Expand Down
4 changes: 3 additions & 1 deletion src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"select": "Por favor seleccione un",
"course": "curso",
"lessonplan": "plan de lección",
"onlyselect": "Seleccione"
"onlyselect": "Seleccione",
"aresure": "¿Estás seguro?",
"reset": "¡Progreso reiniciado!"
},
"problem":
{
Expand Down
4 changes: 3 additions & 1 deletion src/locales/se.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"select": "Vänligen välj en",
"course": "kurs",
"lessonplan": "lektionsplan",
"onlyselect": "Välj"
"onlyselect": "Välj",
"aresure": "Är du säker?",
"reset": "Framsteg nollställt!"
},
"problem":
{
Expand Down

0 comments on commit 9db906c

Please sign in to comment.