Waavi/translation

Accessing group key using group::key

nquillet opened this issue · 2 comments

Hi,

I'm unable to access database translation using this syntax:

group::key

Many Laravel packages using this syntax on their views and controllers (Here for Laravel Voyager).

My Waavi/Translation is misconfigured or something else ?

Further informations are below :

On my database
image

On my controller:

Not working:
trans('voyager::generic.dashboard');

Works:
trans('voyager.generic.dashboard');

How did you import voyager's language files? You see, for packages I believe it's the namespace that should be set to voyager, generic would be the group and dashboard the item. If you loaded them manually then it failed.

I'd have to look more into it.