plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Feature Request]: ide.json options for autocompleting translation files with a custom namespace.

Open RalphMRivera opened this issue 2 years ago • 2 comments

Feature Description

It would be great if Laravel Idea could auto complete language files with the __() helper based on an additional custom namespaces such as: Lang::addNamespace('Foo', base_path().'/app/Foo/Language/');

In this scenario, both the default Laravel language files and the namespace files would be available in auto-completion.

As an alternative, it would be great to add the namespace name and path to the ide.json file so that auto-completion is triggered when typing __('Foo::.

RalphMRivera avatar Sep 21 '22 22:09 RalphMRivera

Hi, Ralph.

I can probably add support for this, without ide.json.

BTW, why addNamespace call is with 'Foo', but __('foo::, not __('Foo::?

adelf avatar Sep 21 '22 23:09 adelf

Sorry. I made a typo. I corrected it.

RalphMRivera avatar Sep 22 '22 17:09 RalphMRivera