feat: Refactor App and ChannelsTable components for improved i18n support

- Removed redundant user and status loading logic from the App component, centralizing it in the PageLayout component for better maintainability.
- Enhanced the ChannelsTable component by integrating translation functions for various UI elements, ensuring consistent localization of titles and modal messages.
- Updated the English locale file with new translation keys for sub-channel modifications, improving the overall localization coverage.
- Streamlined the code structure in multiple components to enhance readability and performance.
This commit is contained in:
CalciumIon
2024-12-14 14:09:30 +08:00
parent 68b87736b6
commit 41a7cee98e
7 changed files with 85 additions and 102 deletions

View File

@@ -709,7 +709,7 @@
"密码修改成功!": "Password changed successfully!",
"划转金额最低为": "The minimum transfer amount is",
"请输入邮箱!": "Please enter your email!",
"验证码发送成功,请检查<EFBFBD><EFBFBD><EFBFBD>箱!": "The verification code was sent successfully, please check your email!",
"验证码发送成功,请检查箱!": "The verification code was sent successfully, please check your email!",
"请输入邮箱验证码!": "Please enter the email verification code!",
"请输入要划转的数量": "Please enter the amount to be transferred",
"当前余额": "Current balance",
@@ -827,8 +827,8 @@
"模型消耗分布": "Model consumption distribution",
"模型调用次数占比": "Proportion of model calls",
"用户消耗分布": "User consumption distribution",
"时间粒度": "time granularity",
"天": "sky",
"时间粒度": "Time granularity",
"天": "day",
"模型概览": "Model overview",
"用户概览": "User overview",
"正在策划中": "Under planning",
@@ -1212,5 +1212,10 @@
"当前未开启Midjourney回调部分项目可能无法获得绘图结果可在运营设置中开启。": "Current Midjourney callback is not enabled, some projects may not be able to obtain drawing results, which can be enabled in the operation settings.",
"Telegram 身份验证": "Telegram authentication",
"Linux DO 身份验证": "Linux DO authentication",
"协议": "License"
"协议": "License",
"修改子渠道权重": "Modify sub-channel weight",
"确定要修改所有子渠道权重为 ": "Confirm to modify all sub-channel weights to ",
" 吗?": "?",
"修改子渠道优先级": "Modify sub-channel priority",
"确定要修改所有子渠道优先级为 ": "Confirm to modify all sub-channel priorities to "
}