Skip to content

Commit

Permalink
Show level numbers for difficulty levels
Browse files Browse the repository at this point in the history
Display chosen difficulty level on game end screen
  • Loading branch information
stefanseifert committed Oct 29, 2024
1 parent 505374f commit 3095d5f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@
}
},
"difficultyLevel": {
"1": "Einstieg",
"2": "Moderat",
"3": "Mittel",
"4": "Fortgeschritten",
"5": "Schwer"
"1": "Level 1 - Einstieg",
"2": "Level 2 - Moderat",
"3": "Level 3 - Mittel",
"4": "Level 4 - Fortgeschritten",
"5": "Level 5 - Schwer"
},
"player": {
"player": "Spieler",
Expand Down
10 changes: 5 additions & 5 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@
}
},
"difficultyLevel": {
"1": "Beginner",
"2": "Moderate",
"3": "Medium",
"4": "Advanced",
"5": "Expert"
"1": "Level 1 - Beginner",
"2": "Level 2 - Moderate",
"3": "Level 3 - Medium",
"4": "Level 4 - Advanced",
"5": "Level 5- Expert"
},
"player": {
"player": "Player",
Expand Down
4 changes: 4 additions & 0 deletions src/views/GameEnd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

<p v-html="t('gameEnd.winCondition')"></p>

<p class="fst-italic">
{{t('setup.difficultyLevel.title')}}: {{t(`difficultyLevel.${state.setup.difficultyLevel}`)}}
</p>

<FooterButtons :backButtonRouteTo="backButtonRouteTo" endGameButtonType="endGame"/>
</template>

Expand Down

0 comments on commit 3095d5f

Please sign in to comment.