diff --git a/app/i18n.py b/app/i18n.py index 014827d..478fd4d 100644 --- a/app/i18n.py +++ b/app/i18n.py @@ -33,6 +33,14 @@ _translations: dict[str, dict[str, str]] = { "dash.countries": {"zh": "国家/地区", "en": "Countries"}, "dash.chart_sent": {"zh": "📤 寄出", "en": "📤 Sent"}, "dash.chart_received": {"zh": "📬 收到", "en": "📬 Received"}, + "dash.recent": {"zh": "最近动态", "en": "Recent activity"}, + "dash.empty": {"zh": "暂无明信片", "en": "No postcards yet"}, + "dash.welcome_title": {"zh": "欢迎使用星笺!", "en": "Welcome to Mailova!"}, + "dash.welcome_hint": {"zh": "创建一个", "en": "Create a"}, + "dash.welcome_hint2": {"zh": " 开始管理你的明信片", "en": " to start managing your postcards"}, + "dash.today": {"zh": "今天", "en": "Today"}, + "dash.yesterday": {"zh": "昨天", "en": "Yesterday"}, + "dash.days_ago": {"zh": "天前", "en": " days ago"}, # ── Profiles ── "profiles.title": {"zh": "Profile", "en": "Profiles"}, @@ -159,6 +167,7 @@ _translations: dict[str, dict[str, str]] = { "invites.max_uses": {"zh": "最大使用次数", "en": "Max uses"}, "invites.expires_time": {"zh": "过期时间", "en": "Expiration"}, "invites.registered_users": {"zh": "注册用户", "en": "Registered users"}, + "invites.empty": {"zh": "暂无邀请码", "en": "No invite codes yet"}, # ── Showcase (public) ── "showcase.title": {"zh": " 的明信片", "en": "'s postcards"}, diff --git a/app/templates/admin_invites.html b/app/templates/admin_invites.html index d0c0751..51dc860 100644 --- a/app/templates/admin_invites.html +++ b/app/templates/admin_invites.html @@ -93,7 +93,7 @@ {% else %}
{{ 'invites.title'|t(user.language) }}
+{{ 'invites.empty'|t(user.language) }}
{{ 'dash.empty'|t(user.language) }}
+ {% endif %} +{{ 'dash.welcome'|t(user.language) }}{{ user.username }} 👋
+ +{{ 'dash.welcome_title'|t(user.language) }}
+{{ 'dash.welcome_hint'|t(user.language) }} {{ 'nav.profiles'|t(user.language) }}
{{ 'profiles.new_ph'|t(user.language) }}
+还没有 Profile
+{{ 'profiles.new_ph'|t(user.language) }}
+{{ 'profile_showcase.single_control'|t(user.language) }}:
+单张明信片展示控制(关闭展示后可单独隐藏):
{% for pc in pc_list %}