Skip to content

Commit 7806dea

Browse files
ngourdonzeripath
authored andcommitted
add french specific rule for translating plural texts (#6846)
1 parent e0dde81 commit 7806dea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/templates/helper.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,12 @@ var trNLangRules = map[string]func(int64) int{
486486
"zh-TW": func(cnt int64) int {
487487
return 0
488488
},
489+
"fr-FR": func(cnt int64) int {
490+
if cnt > -2 && cnt < 2 {
491+
return 0
492+
}
493+
return 1
494+
},
489495
}
490496

491497
// TrN returns key to be used for plural text translation

0 commit comments

Comments
 (0)