themsaid/laravel-langman-gui

Scan doesn't work on fresh project and install

slakbal opened this issue ยท 11 comments

Hi Mohammed,

I have a fresh install of everything and a single view with the following:

__("This is a test")

Clicking on the scan I can see that the endpoint does return the correct value:

["This is a test"]

but the Vue component throws the following error:

langman.js:42763 Uncaught TypeError: Cannot read property 'This is a test' of undefined at Vue$3.addNewKey (langman.js:42763) at Vue$3.boundFn [as addNewKey] (langman.js:33189) at _.forEach.key (langman.js:42835) at arrayEach (langman.js:14459) at Function.forEach (langman.js:23281) at Object.$.post.done.response (langman.js:42834) at fire (langman.js:6979) at Object.fireWith [as resolveWith] (langman.js:7109) at done (langman.js:12934) at XMLHttpRequest.<anonymous> (langman.js:13176)

Are you getting it also on a fresh install?

I have this same issue.

Me too.

I think the problem is "cache files" from langman. Just delete all files in "storage/langmanGUI"

Did that already, problem still present...
When I click on "Scan" it just creates a new folder with an en.json in it. The file contains only an empty JSON Object.

  1. clear cached files (storage/langmanGUI)
  2. clear json files (en.json , fr.json ...)
  3. open web interface with an anonymous session in Chrome
  4. add a language file (ex "fr")
  5. scan

Still not working ๐Ÿ˜

@themsaid some news here? I really want to use it! Would be great if it works! :-)

Same here...

This is fixed now. thanks everyone.

still not working

I had the same issue. I noticed that there was no json file for the base language in the resources/lang dir.
After creating an en.json file with only {} in the file everything worked as expected.