Skip to content

Commit

Permalink
Localize Captcha placeholder text
Browse files Browse the repository at this point in the history
Replaced hardcoded "Captcha Code" with localized string using
@SharedLocalizer["Captcha code"] to support internationalization
and enhance user experience for non-English speakers.
  • Loading branch information
EdiWang committed Sep 27, 2024
1 parent a97c521 commit f4fe835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Moonglade.Web/Pages/SignIn.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<input asp-for="CaptchaCode"
minlength="4"
maxlength="4"
placeholder="Captcha Code"
placeholder="@SharedLocalizer["Captcha code"]"
autocomplete="off"
class="form-control" required />
<img id="img-captcha" onclick="getNewCaptcha()" src="~/captcha-image" data-bs-toggle="tooltip" data-placement="top" title="@SharedLocalizer["Can't read? Click to change another image."]" />
Expand Down

0 comments on commit f4fe835

Please sign in to comment.