支持模板列表预览
This commit is contained in:
@@ -660,6 +660,15 @@ def main():
|
||||
st.markdown(f"**{tr('help.how')}**")
|
||||
st.markdown(tr("template.how"))
|
||||
|
||||
# Template preview link (based on language)
|
||||
current_lang = get_language()
|
||||
if current_lang == "zh_CN":
|
||||
template_docs_url = "https://aidc-ai.github.io/Pixelle-Video/zh/user-guide/templates/#_3"
|
||||
else:
|
||||
template_docs_url = "https://aidc-ai.github.io/Pixelle-Video/user-guide/templates/#built-in-template-preview"
|
||||
|
||||
st.markdown(f"🔗 [{tr('template.preview_link')}]({template_docs_url})")
|
||||
|
||||
# Import template utilities
|
||||
from pixelle_video.utils.template_util import get_templates_grouped_by_size
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
"template.selector": "Template Selection",
|
||||
"template.select": "Select Template",
|
||||
"template.select_help": "Select template and video size",
|
||||
"template.preview_link": "View All Template Previews",
|
||||
"template.video_size_info": "Final Video Size: {width} × {height}",
|
||||
"template.separator_selected": "Please select a specific template, not the group header",
|
||||
"template.default": "Default",
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
"template.selector": "模板选择",
|
||||
"template.select": "选择模板",
|
||||
"template.select_help": "选择模板和视频尺寸",
|
||||
"template.preview_link": "查看所有模板效果图",
|
||||
"template.video_size_info": "最终视频尺寸:{width} × {height}",
|
||||
"template.separator_selected": "请选择具体的模板,而不是分组标题",
|
||||
"template.default": "默认",
|
||||
|
||||
Reference in New Issue
Block a user