Commit a2e95fa
committed
Fix web stats calculation to handle plural forms correctly
- Replace manual key counting with ResourceFile.Count property
- Replace manual translation counting with ResourceFile.CompletedCount
- CompletedCount uses ResourceEntry.IsEmpty which correctly handles plurals
- Fixes invalid stats for JSON/PO/Android/iOS projects with plural forms
- Aligns with CLI stats command implementation1 parent 1bb6faf commit a2e95fa
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 46 | + | |
| 47 | + | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
0 commit comments