nWidart / laravel-modules

Module Management In Laravel
https://docs.laravelmodules.com
MIT License
5.55k stars 967 forks source link

how to load module translations that works in global namespace #1568

Closed samerzaki closed 1 year ago

samerzaki commented 1 year ago

In each module service provider, we load translation like this: $this->loadTranslationsFrom(module_path($this->moduleName, 'Resources/lang'), $this->moduleNameLower);

the problem is that loaded translations becomes limited to related module namespace and to access it, you should use for example: __('student::auth.required'),

so, how do we make loaded translations accessible from laravel and any other module by using: __('auth.required'),

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

samerzaki commented 1 year ago

any news ?