Skip to content

Commit

Permalink
fix: detect trans_choice functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nerg4l committed Jan 22, 2024
1 parent 69c2d5b commit 8cc07ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ The command detects the following in your blade and application files:
- `@lang('key')` Blade directives are compiled to `app('translator')->get('key')`
- `__('key')` any call to the `__` function
- `trans('key')` any call to the `trans` function
- `trans_choice('key', x)` any call to the `trans_choice` function
- `app('translator')->get('key')` any direct `get`method call on the `translator`
- `App::make('translator')->get('key')` any direct `get` method call on the `translator`
- `Lang::get('key')` any `get` static call on the `Lang` facade
Expand Down
1 change: 1 addition & 0 deletions config/lost-in-translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'function' => [
'__', // __('key')
'trans', // trans('key')
'trans_choice', // trans_choice('key', x)
],

'method-function' => [
Expand Down

0 comments on commit 8cc07ad

Please sign in to comment.