feat: localize interface messages

This commit is contained in:
Erzbir
2026-08-07 14:45:14 +08:00
parent b556dd9a74
commit e83853ba34
22 changed files with 188 additions and 41 deletions
+2 -2
View File
@@ -5,14 +5,14 @@
<article class="post">
<header>
<h1 class="post-title"
th:with="title=${theme.config.links_page.title ?: page.links.title ?: 'Links'}"
th:with="title=${theme.config.links_page.title ?: #messages.msg('page.links.title')}"
th:text="${title}">
Links
</h1>
</header>
<section class="post-content link-section" th:each="group : ${groups}">
<div class="link-section-header">
<h2 th:text="${!#strings.isEmpty(group.spec.displayName) ? group.spec.displayName:'links'}">
<h2 th:text="${!#strings.isEmpty(group.spec.displayName) ? group.spec.displayName : #messages.msg('page.links.title')}">
Links
</h2>
</div>