Skip to content

Conversation

ManuDoni
Copy link

@ManuDoni ManuDoni commented Oct 5, 2022

  • Catch also translation strings with parameters
  • Fix: catch also white spaces or line breaks outside the translation string

I changed the regex to catch translation string with parameters like this: __('Hello :user_name', ['user_name' => $user->name]) and even this weird one:

__(
    'Hello :user_name'
    , // I deliberately put this comma here
    ['user_name' => $user->name]
)

* Catch also translation strings with parameters
* Fix: catch also white spaces or line breaks outside the translation string

I changed the regex to catch translation string with parameters like this: `__('Hello :user_name', ['user_name' => $user->name])` and even this weird one:
```
__(
    'Hello :user_name'
    , // I deliberately put this comma here
    ['user_name' => $user->name]
)
```
@ManuDoni
Copy link
Author

ManuDoni commented Oct 5, 2022

I can also confirm that this package works for laravel 9

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.

1 participant