Commit 4625072
fix(brazil): add passing $this->locale for calculateProclamationOfRepublicDay() (#376)
Without this, the holiday's name won't be translated. All other calculateHoliday() methods properly provide this argument, thus being translated.
If you try this code:
```php
$holiday = Yasumi::create(Brazil::class, 2025, 'pt_BR');
$this->assertEquals(
'Dia da Proclamação da República',
$holiday->getHoliday(self::HOLIDAY)->getName()
);
```
It'll fail.
Signed-off-by: Mateus Ribeiro Bossa <mateus.rbossa@gmail.com>1 parent c747552 commit 4625072
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
0 commit comments