{% for key, translations in TRANSLATIONS.items() %}
{% set is_short_text = key in S_KEYS %}
字段名: {{ key }} {% if not is_short_text %}(富文本/HTML){% endif %}
{% for lang_code in lang_order %}
{% set lang_name = LANG_DATA[lang_code]['name'] %}
{% set field_id = key + '_' + lang_code %}
{% set content = translations.get(lang_code, '') %}
{% if is_short_text %}
{# 短文本: 使用普通 INPUT #}
{% else %}
{# 长文本: 使用 contenteditable DIV 和隐藏 INPUT #}
{{ content|safe }}
{# 隐藏字段,用于提交实际内容 #}
{% endif %}
{% endfor %}