Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.7] Apply parameters to entire localization array #27254

Merged
merged 4 commits into from
Jan 23, 2019

Conversation

Tekner
Copy link
Contributor

@Tekner Tekner commented Jan 21, 2019

I apologize if this has been addressed somewhere else, though I was unable to find any discussion of this when searching for it. I found a discrepancy when apply parameter replacements to key-based localizations.

When calling

__('foobar', ['foo' => 'bar']);

to retrieve an entire localization array, the parameters are not applied. This minor change applies parameters to all lines retrieved.

When calling
```php
__('foobar', ['foo' => 'bar']);
```
to retrieve an entire localization array, the parameters are not applied. This minor change applies parameters to all lines retrieved.
@driesvints driesvints changed the title Apply parameters to entire localization array [5.7] Apply parameters to entire localization array Jan 22, 2019
@taylorotwell taylorotwell merged commit bc4b00b into laravel:5.7 Jan 23, 2019
@Tekner Tekner deleted the patch-1 branch January 23, 2019 14:54
@TBlindaruk
Copy link
Contributor

@Tekner , Could you please add test for this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants