mxr612 27794895c9 feat: implement multilingual template support
- Updated app.py to dynamically load Jinja2 templates based on the detected language.
- Created new template files for English and Chinese, including base, index, list, scale, and result pages.
- Modified template rendering logic to utilize the appropriate language-specific templates based on user preferences.
2025-06-17 08:08:18 +08:00

16 lines
393 B
HTML

{% extends 'base.html' %}
{% block head_extra %}
<title>{{ tag }}</title>
{% endblock %}
{% block main %}
<div class="scale-list">
{% for scale_id, scale in scales.items() %}
{% if scale.tag == tag %}
<a class="title" href="/scales/{{ scale_id }}">{{ scale.get('title','Untitled') }}</a>
<p>{{ scale.abstract|safe }}</p>
{% endif %}
{% endfor %}
</div>
{% endblock %}