Commit a91e171
authored
fix(i18n): restore validation messages masked by duplicate top-level lang key [3.x] (#144)
* fix(i18n): consolidate validation messages into reusable translation keys
* test(i18n): detect duplicate top-level keys in lang files
PHP silently keeps only the last duplicate array key, which can mask
entire blocks of translations. The previous duplicate `'validation'`
key wiped out 200+ entries (including `unique_value`) and existing
key-existence tests didn't catch it because none of the listed keys
happened to live in the masked block.
Adds a structural assertion across every `resources/lang/<locale>/*.php`
file so future duplicates fail fast.1 parent 6b36bf9 commit a91e171
2 files changed
Lines changed: 24 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
356 | 367 | | |
357 | 368 | | |
358 | 369 | | |
| |||
541 | 552 | | |
542 | 553 | | |
543 | 554 | | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | 555 | | |
559 | 556 | | |
560 | 557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
0 commit comments