mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-13 18:36:37 +08:00
refactor(i18n): fragments 为唯一源,主包改为生成物
- 一次性回灌:主包最新内容(含 565 个未同步键)全量写回 6 个 fragment 文件,fragments 成为完整唯一源;新增 core fragment(common/docs/home 等 9 个此前仅存在于主包的命名空间)
- merge-i18n-fragments.mjs 改为从零重建主包(不再以主包为基础),重建结果与原主包语义零差异
- 主包 messages/{zh-CN,en}.json 移出跟踪并加入 .gitignore
- 生成接入入口:predev/prebuild/prebuild:embed/precheck:i18n 钩子 + Makefile code-check 与 checks.sh vitest 前置生成
- 修复既有漂移:configVersions.title 现以 fragments(Config versions)为准
This commit is contained in:
@@ -1,12 +1,92 @@
|
||||
{
|
||||
"layout": {
|
||||
"nav": {
|
||||
"home": "Home",
|
||||
"myFiles": "My Files",
|
||||
"users": "Users",
|
||||
"tasks": "Tasks",
|
||||
"storage": "Storage",
|
||||
"database": "Database",
|
||||
"push": "Notifications",
|
||||
"messageGateway": "Messaging",
|
||||
"logs": "System Logs",
|
||||
"system": "System Config",
|
||||
"adminSettings": "System Settings",
|
||||
"demo": "Demo",
|
||||
"apiDocs": "API Docs",
|
||||
"usageDocs": "User Guide",
|
||||
"dashboard": "Dashboard",
|
||||
"nodes": "Nodes",
|
||||
"proxyRoutes": "Proxy Routes",
|
||||
"websites": "Domains",
|
||||
"certificates": "TLS Certificates",
|
||||
"dnsAccounts": "DNS Accounts",
|
||||
"cloudflare": "Cloudflare",
|
||||
"origins": "Origins",
|
||||
"responses": "Response Pages",
|
||||
"waf": "WAF",
|
||||
"ipGroups": "IP Groups",
|
||||
"rateLimits": "Rate Limits",
|
||||
"pages": "Pages",
|
||||
"configVersions": "Releases",
|
||||
"accessLogs": "Access Logs",
|
||||
"performance": "Performance",
|
||||
"applyLogs": "Apply Logs"
|
||||
},
|
||||
"groups": {
|
||||
"admin": "Admin",
|
||||
"docs": "Docs",
|
||||
"security": "Security",
|
||||
"websites": "Websites"
|
||||
},
|
||||
"user": {
|
||||
"adminRole": "Administrator",
|
||||
"userRole": "User",
|
||||
"notLoggedIn": "Not signed in",
|
||||
"syncing": "Syncing account",
|
||||
"profile": "My Profile",
|
||||
"settings": "Settings",
|
||||
"help": "Help",
|
||||
"logout": "Sign out",
|
||||
"unknownUser": "Unknown user"
|
||||
},
|
||||
"logoutDialog": {
|
||||
"title": "Sign out",
|
||||
"description": "Are you sure you want to sign out?",
|
||||
"loggingOut": "Signing out…",
|
||||
"confirm": "Sign out",
|
||||
"inProgress": "Signing out…",
|
||||
"failed": "Sign-out failed",
|
||||
"failedDescription": "An error occurred while signing out. Please try again."
|
||||
},
|
||||
"header": {
|
||||
"notifications": "Notifications",
|
||||
"settings": "Settings",
|
||||
"search": "Search",
|
||||
"toggleFullWidth": "Toggle full width",
|
||||
"toggleTheme": "Toggle theme",
|
||||
"changePasswordBanner": "For your account security, please change your password now.",
|
||||
"changePasswordAction": "Change password",
|
||||
"bannerTitle": "Announcement",
|
||||
"bannerLink": "Learn more",
|
||||
"dismiss": "Dismiss",
|
||||
"guest": "Guest"
|
||||
},
|
||||
"search": {
|
||||
"categoryPage": "Page",
|
||||
"categoryFeature": "Feature",
|
||||
"categorySetting": "Setting",
|
||||
"categoryAdmin": "Admin",
|
||||
"tipPrefix": "Tips:",
|
||||
"tipSlash": "You can also press / to open this dialog",
|
||||
"tipArrow": "to navigate items",
|
||||
"tipNewTab": "Open in new tab",
|
||||
"tipDidYouKnow": "Did you know: search is still being improved",
|
||||
"searchPlaceholder": "Search pages and features...",
|
||||
"noResults": "No results found. Try a different term?",
|
||||
"openInNewTab": "Open in new tab",
|
||||
"open": "Open",
|
||||
"closeSearch": "Close search",
|
||||
"items": {
|
||||
"globalSettings": "Settings",
|
||||
"appearance": "Appearance",
|
||||
@@ -39,6 +119,21 @@
|
||||
"pushDesc": "Configure email, Lark, and Telegram notification channels (admin only)",
|
||||
"logsDesc": "View system logs and background task execution logs (admin only)"
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"loadFailed": "Load failed",
|
||||
"retry": "Retry",
|
||||
"unknownError": "An unknown error occurred. Please try again later.",
|
||||
"viewDetails": "View error details",
|
||||
"unknownErrorShort": "Unknown error"
|
||||
},
|
||||
"loading": {
|
||||
"loading": "Loading",
|
||||
"loadingDesc": "Fetching data..."
|
||||
},
|
||||
"empty": {
|
||||
"noData": "No data",
|
||||
"noContent": "No records found"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user