优化webui

This commit is contained in:
puke
2025-10-26 17:55:14 +08:00
committed by puke
parent 5acf0a53b6
commit 8c035f301d
4 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ def tr(key: str, fallback: Optional[str] = None, **kwargs) -> str:
Translated text
Example:
tr("app.title") # => "ReelForge - AI书单视频生成器"
tr("app.title") # => "ReelForge"
tr("error.missing_field", field="API Key") # => "请填写 API Key"
"""
locale = _locales.get(_current_language, {})

View File

@@ -1,7 +1,7 @@
{
"language_name": "English",
"t": {
"app.title": "🔨 ReelForge - Modular Video Creation Platform",
"app.title": " ReelForge - AI Auto Short Video Engine",
"app.subtitle": "Forge your perfect reel engine",
"section.content_input": "📖 Content Input",

View File

@@ -1,7 +1,7 @@
{
"language_name": "简体中文",
"t": {
"app.title": "🔨 ReelForge - 模块化视频创作平台",
"app.title": " ReelForge - AI 全自动短视频引擎",
"app.subtitle": "打造专属你的视频创作引擎",
"section.content_input": "📖 内容输入",

2
web.py
View File

@@ -355,7 +355,7 @@ def main():
# Top bar: Title + Language selector
col1, col2 = st.columns([4, 1])
with col1:
st.title(tr("app.title"))
st.markdown(f"<h3>{tr('app.title')}</h3>", unsafe_allow_html=True)
with col2:
render_language_selector()