amiranagram / localizator

Scan your Laravel project and generate language files ready to translate in language(s) of choosing.
Other
229 stars 29 forks source link

@choice Blade directive content not translated #47

Closed khalyomede closed 1 year ago

khalyomede commented 1 year ago

It works well for @lang() but does not add the translations for @choice()

To check if choice() is parsed as well

amiranagram commented 1 year ago

Hi @khalyomede, add choice into the localizator config. Like this:

'search'   => [
    'functions' => ['__', 'trans', '@lang', '@choice']
],