You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created an addon, then published lang files from my addon
What I expected to happen
I expetected to override some strings and see changes in the UI
What happened
Changes are ignored
What I've already tried to fix it
I changed AutomaticServiceProvider as follows
protected function publishedLangsPath() {
app()->langPath(). '/vendor/'. $this->vendorNameDotPackageName();
}
I don't like it, because, publish lang files, creates a weird folder 'company_name.package_name' instead of standard 'company_name' .
It's ugly but laravel 9 can find it.
See vendor/laravel/framework/src/Illuminate/Translation/FileLoader.php , in the specific note the inner working of
loadNamespaced
loadNamespaceOverrides
I've no idea how to add additional overrides or hints from the package itself to be able to autopublish to a company_name folder instead of company_name.package_name and ALSO allow Laravel to find overrides in here.
Bug report
What I did
I created an addon, then published lang files from my addon
What I expected to happen
I expetected to override some strings and see changes in the UI
What happened
Changes are ignored
What I've already tried to fix it
I changed
AutomaticServiceProvider
as followsI don't like it, because, publish lang files, creates a weird folder 'company_name.package_name' instead of standard 'company_name' .
It's ugly but laravel 9 can find it.
See
vendor/laravel/framework/src/Illuminate/Translation/FileLoader.php
, in the specific note the inner working ofloadNamespaced
loadNamespaceOverrides
I've no idea how to add additional overrides or hints from the package itself to be able to autopublish to a
company_name
folder instead ofcompany_name.package_name
and ALSO allow Laravel to find overrides in here.i tried also to leave
publishedLangsPath
asbut change
boot()
from
to
This causes the desidered folder name, with only the company, but then every occurrency of
must be replaced with
Context to replicate the bug - Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is:The text was updated successfully, but these errors were encountered: