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'),
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.
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'),