refactor and update i18n (template), to be continue

This commit is contained in:
shiqstone
2021-04-15 21:27:01 +08:00
parent 78e35ad8a9
commit 26a7793dd8
4 changed files with 304 additions and 1 deletions

View File

@@ -418,15 +418,26 @@
</div>
</div>
</div>
<template id="template-normal">
{{if eq .Lang "en-us"}}
{{template "document/template_normal-en.tpl"}}
{{else}}
{{template "document/template_normal.tpl"}}
{{end}}
</template>
<template id="template-api">
{{if eq .Lang "en-us"}}
{{template "document/template_api-en.tpl"}}
{{else}}
{{template "document/template_api.tpl"}}
{{end}}
</template>
<template id="template-code">
{{if eq .Lang "en-us"}}
{{template "document/template_code-en.tpl"}}
{{else}}
{{template "document/template_code.tpl"}}
{{end}}
</template>
<script src="{{cdnjs "/static/js/array.js" "version"}}" type="text/javascript"></script>
<script src="{{cdnjs "/static/jquery/1.12.4/jquery.min.js"}}"></script>