Repository navigation
Commit 7b36b9c
fix(i18n): pin dv plural categories, stop trusting platform ICU (#197)
Reverts the previous commit's dv.ts ".many" translations — they made
unit(linux) pass locally on Windows but fail on Linux CI with the
opposite error ("extra" unexpected keys), because
Intl.PluralRules("dv-MV").resolvedOptions().pluralCategories disagrees
between ICU builds: Windows resolves ["one","many","other"], Linux
resolves ["one","other"]. desktopNativePluralCategories() trusted
whatever the running platform's ICU said, so this test's expectations
literally changed based on which OS ran it.
Fix: pin dv's extra plural categories to [] directly in
parity.test.ts instead of asking the platform — matches what every
dv.ts file actually contains (.one/.other only, no .many/.few/.two/
.zero anywhere), so the test's expectation stops depending on the CI
runner's OS. Issue #197 tracked exactly this locale/category gap.
Co-Authored-By: Claude Sonnet 5 <[email protected]>1 parent 7a96ca6 commit 7b36b9c
3 files changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | | - | |
758 | 757 | | |
759 | 758 | | |
760 | | - | |
761 | 759 | | |
762 | 760 | | |
763 | 761 | | |
764 | 762 | | |
765 | 763 | | |
766 | 764 | | |
767 | | - | |
768 | 765 | | |
769 | 766 | | |
770 | 767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | | - | |
101 | 99 | | |
102 | 100 | | |
103 | | - | |
104 | 101 | | |
105 | 102 | | |
106 | | - | |
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
| |||
0 commit comments