Skip to content

Commit 91e17e6

Browse files
brunoborgesCopilot
andcommitted
Fix untranslated titles on localized index pages
Resolve each snippet with resolveSnippet() before rendering index cards, so translated titles appear on non-English landing pages. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0efd34b commit 91e17e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html-generators/generate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void buildLocale(String locale, Templates templates, SequencedMap<String, Snippe
257257

258258
// Generate index.html from template
259259
var tipCards = allSnippets.values().stream()
260-
.map(s -> renderIndexCard(templates.indexCard(), s, locale, strings))
260+
.map(s -> renderIndexCard(templates.indexCard(), resolveSnippet(s, locale), locale, strings))
261261
.collect(Collectors.joining("\n"));
262262

263263
var indexTokens = new LinkedHashMap<String, String>();

0 commit comments

Comments
 (0)