Files
theme-earth/templates/modules/widgets/categories.html
Ryan Wang 03dc038eb7 feat: add i18n supports (#214)
添加界面的 i18n 支持。

/kind feature

Fixes https://github.com/halo-dev/theme-earth/issues/198
Fixes https://github.com/halo-dev/theme-earth/issues/75

```release-note
添加界面的 i18n 支持。
```
2024-11-18 03:08:03 +00:00

14 lines
546 B
HTML

<div
class="w-full overflow-hidden rounded-xl bg-white p-3 shadow transition-all duration-500 hover:shadow-md dark:bg-slate-800"
>
<h2 class="inline-flex items-center gap-2 text-base dark:text-slate-50">
<span class="i-tabler-category text-lg"></span>
<th:block th:text="#{widget.categories.title}"></th:block>
</h2>
<div class="mt-2" th:with="categories = ${categoryFinder.listAsTree()}">
<ul class="space-y-1">
<li th:replace="~{modules/category-tree :: single(categories=${categories})}" />
</ul>
</div>
</div>