Skip to content

Commit b349da3

Browse files
committed
i18n: pluralization for skill times
1 parent 8fdc524 commit b349da3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/i18n/translations.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2648,7 +2648,10 @@
26482648
},
26492649
"format_times": {
26502650
"cn": "好了就用({{times}}次)",
2651-
"en": "Use when ready ({{times}} times)"
2651+
"en": {
2652+
"1": "Use when ready (1 time)",
2653+
"other": "Use when ready ({{times}} times)"
2654+
}
26522655
},
26532656
"format_specific_times": {
26542657
"cn": "好了就用(指定次数)",

src/models/operator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export function getSkillUsageTitle(
7878
if (skillUsage === CopilotDocV1.SkillUsageType.ReadyToUseTimes) {
7979
return skillTimes
8080
? i18n.models.operator.skill_usage.format_times({
81+
count: skillTimes,
8182
times: skillTimes,
8283
})
8384
: i18n.models.operator.skill_usage.format_specific_times

0 commit comments

Comments
 (0)