thiagocordeiro / laravel-translator

Search translation keys and insert into json to be translated
MIT License
84 stars 22 forks source link

Can it auto-write lang file if not exists ? #36

Open goesredy opened 3 years ago

goesredy commented 3 years ago

I just try to follow the readme. But I got an issue, translator:update error because:

  1. Lang file doesn't exists Translation file does not exist for en
  2. Lang file doesn't have JSON content (blank) Invalid translation file for language en

Can it just create the lang file first if not exists ?

Thanks for great package.

alexleokyky commented 2 years ago

Yes. You need to create translation files first.

https://github.com/thiagocordeiro/laravel-translator#usage