fix: Hint labels showing default text regardless of localization (#1965)
This commit is contained in:
parent
cc0efd8600
commit
51e3f59054
@ -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
|
||||
|
@ -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"))
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user