Skip to content

Commit fb7e9a3

Browse files
committed
Change locale.Tr to TrString to fix errors
1 parent 879d6d7 commit fb7e9a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/markup/html.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,10 +1209,10 @@ func filePreviewPatternProcessor(ctx *RenderContext, node *html.Node) {
12091209
if statuses[idx].Escaped {
12101210
btnTitle := ""
12111211
if statuses[idx].HasInvisible {
1212-
btnTitle += locale.Tr("repo.invisible_runes_line") + " "
1212+
btnTitle += locale.TrString("repo.invisible_runes_line") + " "
12131213
}
12141214
if statuses[idx].HasAmbiguous {
1215-
btnTitle += locale.Tr("repo.ambiguous_runes_line")
1215+
btnTitle += locale.TrString("repo.ambiguous_runes_line")
12161216
}
12171217

12181218
escapeBtn := &html.Node{

0 commit comments

Comments
 (0)