rmariuzzo / Laravel-JS-Localization

🌐 Convert your Laravel messages and consume them in the front-end!

Home Page:https://github.com/rmariuzzo/laravel-js-localization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get it to work! :(

razvaniacob opened this issue · comments

I need help! I'm generating the file via php artisan command and I include the generated js file that has all my messages and the library to my html page. I set the locals but when I try to get the message like so: Lang.get('messages.hello') it can't find the key.

What should I do now?

I created a js fiddle with my code

https://jsfiddle.net/c04h9sn3/

I figure it out!... sorry for this!

Just noticed it 👍