u o
This commit is contained in:
+46
-4
@@ -34,6 +34,7 @@ var translations = map[Lang]map[string]string{
|
||||
"home_post2_dsc": "Blog posts will appear here once you start publishing from the admin dashboard.",
|
||||
"home_post3_tit": "Built with Go",
|
||||
"home_post3_dsc": "This blog engine uses Go, Gin web framework, GORM, and Tailwind CSS for a modern experience.",
|
||||
"home_no_posts": "No published posts yet.",
|
||||
|
||||
// Login page
|
||||
"login_title": "Sign In",
|
||||
@@ -43,6 +44,7 @@ var translations = map[Lang]map[string]string{
|
||||
"login_ph_pass": "Enter your password",
|
||||
"login_submit": "Sign In",
|
||||
"login_error": "Invalid username or password.",
|
||||
"login_required": "Please fill in all fields.",
|
||||
|
||||
// Dashboard
|
||||
"dash_title": "Dashboard",
|
||||
@@ -91,6 +93,26 @@ var translations = map[Lang]map[string]string{
|
||||
"crop_uploading": "Uploading...",
|
||||
"crop_success": "Avatar updated.",
|
||||
"crop_error": "Failed to upload avatar. Please try again.",
|
||||
|
||||
// Article creation
|
||||
"article_create_title": "Create Article",
|
||||
"article_title": "Title",
|
||||
"article_slug": "Slug",
|
||||
"article_slug_hint": "Auto-generated from title if empty",
|
||||
"article_summary": "Summary",
|
||||
"article_content": "Content",
|
||||
"article_cover": "Cover Image URL",
|
||||
"article_status": "Status",
|
||||
"article_draft": "Draft",
|
||||
"article_published": "Published",
|
||||
"article_is_top": "Pin to top",
|
||||
"article_save_draft": "Save Draft",
|
||||
"article_publish": "Publish",
|
||||
"article_created": "Article created successfully.",
|
||||
"article_error": "Failed to create article.",
|
||||
"article_new": "New Article",
|
||||
"article_title_required": "Title is required.",
|
||||
"article_content_required": "Content is required.",
|
||||
},
|
||||
ZH: {
|
||||
// 导航
|
||||
@@ -112,6 +134,7 @@ var translations = map[Lang]map[string]string{
|
||||
"home_post2_dsc": "当你从后台管理面板发布文章后,博客文章将显示在这里。",
|
||||
"home_post3_tit": "使用 Go 构建",
|
||||
"home_post3_dsc": "此博客引擎使用 Go、Gin Web 框架、GORM 和 Tailwind CSS 构建,提供现代化的体验。",
|
||||
"home_no_posts": "暂无已发布的文章。",
|
||||
|
||||
// 登录页
|
||||
"login_title": "登录",
|
||||
@@ -121,6 +144,7 @@ var translations = map[Lang]map[string]string{
|
||||
"login_ph_pass": "请输入密码",
|
||||
"login_submit": "登录",
|
||||
"login_error": "用户名或密码错误。",
|
||||
"login_required": "请填写所有字段。",
|
||||
|
||||
// 后台
|
||||
"dash_title": "后台管理",
|
||||
@@ -134,10 +158,8 @@ var translations = map[Lang]map[string]string{
|
||||
|
||||
// 页脚
|
||||
"footer_text": "© 2026 Go Blog。由 Go & Gin 驱动。",
|
||||
|
||||
// 页面标题
|
||||
"page_home": "首页",
|
||||
"page_login": "登录",
|
||||
"page_home": "首页",
|
||||
"page_login": "登录",
|
||||
|
||||
// 语言切换
|
||||
"lang_switch": "English",
|
||||
@@ -169,6 +191,26 @@ var translations = map[Lang]map[string]string{
|
||||
"crop_uploading": "上传中...",
|
||||
"crop_success": "头像已更新。",
|
||||
"crop_error": "头像上传失败,请重试。",
|
||||
|
||||
// 文章创建
|
||||
"article_create_title": "新建文章",
|
||||
"article_title": "标题",
|
||||
"article_slug": "Slug",
|
||||
"article_slug_hint": "留空则从标题自动生成",
|
||||
"article_summary": "摘要",
|
||||
"article_content": "正文",
|
||||
"article_cover": "封面图 URL",
|
||||
"article_status": "状态",
|
||||
"article_draft": "草稿",
|
||||
"article_published": "已发布",
|
||||
"article_is_top": "置顶",
|
||||
"article_save_draft": "保存草稿",
|
||||
"article_publish": "发布",
|
||||
"article_created": "文章创建成功。",
|
||||
"article_error": "创建文章失败。",
|
||||
"article_new": "新建文章",
|
||||
"article_title_required": "标题不能为空。",
|
||||
"article_content_required": "正文不能为空。",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user