fix: Hint labels showing default text regardless of localization (#1965)

This commit is contained in:
Jeong Rok Suh 2024-11-27 07:34:09 +09:00 committed by GitHub
parent cc0efd8600
commit 51e3f59054
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -48,6 +48,7 @@ report.card=Report card
about=About WebGoat
contact=Contact Us
show.hints=Show hints
hide.hints=Hide hints
lesson.overview=Lesson overview
reset.lesson=Reset lesson
sign.in=Sign in

View File

@ -32,9 +32,9 @@ function($,
toggleLabel: function() {
if (this.isVisible()) {
$('#show-hints-button').text('Hide hints');
} else {
$('#show-hints-button').text('Show hints');
$('#show-hints-button').text(polyglot.t("hide.hints"))
} else {
$('#show-hints-button').text(polyglot.t("show.hints"))
}
},