优化webui
This commit is contained in:
@@ -63,7 +63,7 @@ def tr(key: str, fallback: Optional[str] = None, **kwargs) -> str:
|
|||||||
Translated text
|
Translated text
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
tr("app.title") # => "ReelForge - AI书单视频生成器"
|
tr("app.title") # => "ReelForge"
|
||||||
tr("error.missing_field", field="API Key") # => "请填写 API Key"
|
tr("error.missing_field", field="API Key") # => "请填写 API Key"
|
||||||
"""
|
"""
|
||||||
locale = _locales.get(_current_language, {})
|
locale = _locales.get(_current_language, {})
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"language_name": "English",
|
"language_name": "English",
|
||||||
"t": {
|
"t": {
|
||||||
"app.title": "🔨 ReelForge - Modular Video Creation Platform",
|
"app.title": "⚡ ReelForge - AI Auto Short Video Engine",
|
||||||
"app.subtitle": "Forge your perfect reel engine",
|
"app.subtitle": "Forge your perfect reel engine",
|
||||||
|
|
||||||
"section.content_input": "📖 Content Input",
|
"section.content_input": "📖 Content Input",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"language_name": "简体中文",
|
"language_name": "简体中文",
|
||||||
"t": {
|
"t": {
|
||||||
"app.title": "🔨 ReelForge - 模块化视频创作平台",
|
"app.title": "⚡ ReelForge - AI 全自动短视频引擎",
|
||||||
"app.subtitle": "打造专属你的视频创作引擎",
|
"app.subtitle": "打造专属你的视频创作引擎",
|
||||||
|
|
||||||
"section.content_input": "📖 内容输入",
|
"section.content_input": "📖 内容输入",
|
||||||
|
|||||||
2
web.py
2
web.py
@@ -355,7 +355,7 @@ def main():
|
|||||||
# Top bar: Title + Language selector
|
# Top bar: Title + Language selector
|
||||||
col1, col2 = st.columns([4, 1])
|
col1, col2 = st.columns([4, 1])
|
||||||
with col1:
|
with col1:
|
||||||
st.title(tr("app.title"))
|
st.markdown(f"<h3>{tr('app.title')}</h3>", unsafe_allow_html=True)
|
||||||
with col2:
|
with col2:
|
||||||
render_language_selector()
|
render_language_selector()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user