feat(i18n): enable pluralization for count-based translations

Enable i18next pluralization by setting disablePlurals to false and update multiple translation keys to use _one/_other suffixes for proper singular/plural handling. This improves localization accuracy for count-dependent strings like "X keys", "X models", and "X times".
This commit is contained in:
Dmitriy Safonov
2025-10-10 10:26:40 +03:00
parent c29eef9b15
commit 5810c05dab
3 changed files with 29 additions and 20 deletions

View File

@@ -1,8 +1,10 @@
{
"translation": {
" + Web搜索 {{count}}次 / 1K 次 * {{symbol}}{{price}} * {{ratioType}} {{ratio}}": " + Web search {{count}} times / 1K times * {{symbol}}{{price}} * {{ratioType}} {{ratio}}",
" + Web搜索 {{count}}次 / 1K 次 * {{symbol}}{{price}} * {{ratioType}} {{ratio}}_one": " + Web search {{count}} time / 1K times * {{symbol}}{{price}} * {{ratioType}} {{ratio}}",
" + Web搜索 {{count}}次 / 1K 次 * {{symbol}}{{price}} * {{ratioType}} {{ratio}}_other": " + Web search {{count}} times / 1K times * {{symbol}}{{price}} * {{ratioType}} {{ratio}}",
" + 图片生成调用 {{symbol}}{{price}} / 1次 * {{ratioType}} {{ratio}}": " + Image generation call {{symbol}}{{price}} / 1 time * {{ratioType}} {{ratio}}",
" + 文件搜索 {{count}}次 / 1K 次 * {{symbol}}{{price}} * {{ratioType}} {{ratio}}": " + File search {{count}} times / 1K times * {{symbol}}{{price}} * {{ratioType}} {{ratio}}",
" + 文件搜索 {{count}}次 / 1K 次 * {{symbol}}{{price}} * {{ratioType}} {{ratio}}_one": " + File search {{count}} time / 1K times * {{symbol}}{{price}} * {{ratioType}} {{ratio}}",
" + 文件搜索 {{count}}次 / 1K 次 * {{symbol}}{{price}} * {{ratioType}} {{ratio}}_other": " + File search {{count}} times / 1K times * {{symbol}}{{price}} * {{ratioType}} {{ratio}}",
" 个模型设置相同的值": " models with the same value",
" 吗?": "?",
" 秒": "s",
@@ -398,7 +400,8 @@
"公告更新失败": "Notice update failed",
"公告类型": "Notice Type",
"共": "Total",
"共 {{count}} 个密钥": "Total {{count}} keys",
"共 {{count}} 个密钥_one": "{{count}} key",
"共 {{count}} 个密钥_other": "{{count}} keys",
"共 {{count}} 个模型": "{{count}} models",
"共 {{total}} 项,当前显示 {{start}}-{{end}} 项": "{{total}} items total, showing {{start}}-{{end}} items",
"关": "close",
@@ -707,7 +710,8 @@
"展开": "Expand",
"展开更多": "Expand more",
"左侧边栏个人设置": "Personal settings in left sidebar",
"已为 {{count}} 个模型设置{{type}}": "Set {{type}} for {{count}} models",
"已为 {{count}} 个模型设置{{type}}_one": "Set {{type}} for {{count}} model",
"已为 {{count}} 个模型设置{{type}}_other": "Set {{type}} for {{count}} models",
"已为 ${count} 个渠道设置标签!": "Set tags for ${count} channels!",
"已修复 ${success} 个通道,失败 ${fails} 个通道。": "Fixed ${success} channels, failed ${fails} channels.",
"已停止批量测试": "Stopped batch testing",
@@ -717,7 +721,8 @@
"已切换至最优倍率视图,每个模型使用其最低倍率分组": "Switched to the optimal ratio view, each model uses its lowest ratio group",
"已初始化": "Initialized",
"已删除 {{count}} 个令牌!": "Deleted {{count}} tokens!",
"已删除 {{count}} 条失效兑换码": "Deleted {{count}} expired redemption codes",
"已删除 {{count}} 条失效兑换码_one": "Deleted {{count}} expired redemption code",
"已删除 {{count}} 条失效兑换码_other": "Deleted {{count}} expired redemption codes",
"已删除 ${data} 个通道!": "Deleted ${data} channels!",
"已删除所有禁用渠道,共计 ${data} 个": "Deleted all disabled channels, total ${data}",
"已删除消息及其回复": "Deleted message and its replies",
@@ -737,7 +742,8 @@
"已复制模型名称": "Model name copied",
"已成功开始测试所有已启用通道,请刷新页面查看结果。": "Successfully started testing all enabled channels. Please refresh page to view results.",
"已提交": "Submitted",
"已新增 {{count}} 个模型:{{list}}": "Added {{count}} models: {{list}}",
"已新增 {{count}} 个模型:{{list}}_one": "Added {{count}} model: {{list}}",
"已新增 {{count}} 个模型:{{list}}_other": "Added {{count}} models: {{list}}",
"已更新完毕所有已启用通道余额!": "Updated quota for all enabled channels!",
"已有保存的配置": "There are saved configurations",
"已有的模型": "Existing models",
@@ -753,7 +759,8 @@
"已绑定渠道": "Bound channels",
"已耗尽": "Exhausted",
"已过期": "Expired",
"已选择 {{count}} 个模型": "Selected {{count}} models",
"已选择 {{count}} 个模型_one": "Selected {{count}} model",
"已选择 {{count}} 个模型_other": "Selected {{count}} models",
"已选择 {{selected}} / {{total}}": "Selected {{selected}} / {{total}}",
"已选择 ${count} 个渠道": "Selected ${count} channels",
"已重置为默认配置": "Reset to default configuration",
@@ -1361,8 +1368,10 @@
"确定要修改所有子渠道权重为 ": "Confirm to modify all sub-channel weights to ",
"确定要删除供应商 \"{{name}}\" 吗?此操作不可撤销。": "Are you sure you want to delete supplier \"{{name}}\"? This operation is irreversible.",
"确定要删除所有已自动禁用的密钥吗?": "Are you sure you want to delete all automatically disabled keys?",
"确定要删除所选的 {{count}} 个令牌吗?": "Are you sure you want to delete the selected {{count}} tokens?",
"确定要删除所选的 {{count}} 个模型吗?": "Are you sure you want to delete the selected {{count}} models?",
"确定要删除所选的 {{count}} 个令牌吗?_one": "Are you sure you want to delete the selected {{count}} token?",
"确定要删除所选的 {{count}} 个令牌吗_other": "Are you sure you want to delete the selected {{count}} tokens?",
"确定要删除所选的 {{count}} 个模型吗_one": "Are you sure you want to delete the selected {{count}} model?",
"确定要删除所选的 {{count}} 个模型吗_other": "Are you sure you want to delete the selected {{count}} models?",
"确定要删除此API信息吗": "Are you sure you want to delete this API information?",
"确定要删除此公告吗?": "Are you sure you want to delete this notice?",
"确定要删除此分类吗?": "Are you sure you want to delete this category?",