laravel-modules: Problems with the translation system and loadJsonTranslationsFrom()

I’m having problems translating static texts of my modules (Laravel 8) and analyzing I found several inconsistencies, at least I think.

First, I noticed that this commit https://github.com/nWidart/laravel-modules/commit/3b1285084019d25eb08619d5bfb1f958d17c2a47 introduced JSON translations by default, great, but the function loadJsonTranslationsFrom require only one parameter and 2 are passed.

I also noticed that the package “publishes” the module translations under the resources/lang/{$name} folder, instead the stub points to the 'lang/modules/' . $this->moduleNameLower folder.

The documentation is also very unclear about how translations work

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 28 (12 by maintainers)

Most upvoted comments

I’m out this evening but I’ll see if I can understand the cause