Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing group key using group::key #136

Open
nquillet opened this issue Jun 18, 2018 · 2 comments
Open

Accessing group key using group::key #136

nquillet opened this issue Jun 18, 2018 · 2 comments

Comments

@nquillet
Copy link

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 ?

@nquillet
Copy link
Author

Further informations are below :

On my database
image

On my controller:

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

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

@sildraug
Copy link
Contributor

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.

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

No branches or pull requests

2 participants