feat: P0c 沙盒页面 useT 翻译迁移
- sandbox/page.tsx 全量迁移:所有用户可见文本使用 useT() - 场景命名翻译:sceneName() 函数映射翻译 key - formatTime 使用 i18n 时间文本(刚刚/分钟前/小时前) - 高级参数面板抽象为 map 渲染(消除重复 markup) - 补充中/英 justNow/minutesAgo/hoursAgo 翻译
This commit is contained in:
@@ -55,6 +55,9 @@ const en: Translations = {
|
||||
dailyQuota: '{used} used today, {remaining} remaining',
|
||||
aiReplyDisclaimer: 'AI replies are for reference only.',
|
||||
loginForMoreQuota: 'Login to get more usage and models.',
|
||||
justNow: 'just now',
|
||||
minutesAgo: '{n} min ago',
|
||||
hoursAgo: '{n} hour ago',
|
||||
},
|
||||
auth: {
|
||||
loginTitle: 'Login',
|
||||
|
||||
@@ -53,6 +53,9 @@ const zh = {
|
||||
dailyQuota: '今日已用 {used} 次,剩余 {remaining} 次',
|
||||
aiReplyDisclaimer: 'AI 回复由人工智能生成,仅供参考。',
|
||||
loginForMoreQuota: '登录后可获得更多使用次数和更多模型选择。',
|
||||
justNow: '刚刚',
|
||||
minutesAgo: '{n} 分钟前',
|
||||
hoursAgo: '{n} 小时前',
|
||||
},
|
||||
auth: {
|
||||
loginTitle: '登录',
|
||||
|
||||
Reference in New Issue
Block a user