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
+8 -1
View File
@@ -10,7 +10,14 @@
preferTTL: /*[[${theme.config.style.prefer_ttl ?: 24}]]*/ 24,
pixelStyle: /*[[${theme.config.style.pixel_style}]]*/ false,
pixelCssHref: /*[[@{/assets/dist/pixel.css?v={version}(version=${theme.spec.version})}]]*/ "",
customCss: /*[[${theme.config.style.custom}]]*/ ""
customCss: /*[[${theme.config.style.custom}]]*/ "",
messages: {
currentColorScheme: /*[[#{header.color_scheme.current}]]*/ "Current color scheme",
defaultColorScheme: /*[[#{header.color_scheme.default}]]*/ "Default",
showToc: /*[[#{toc.show}]]*/ "Show table of contents",
hideToc: /*[[#{toc.hide}]]*/ "Hide table of contents",
networkError: /*[[#{moment.network_error}]]*/ "Network error. Please try again."
}
};
</script>
<script no-pjax>