Skip to content

Fix location of lang files to prevent applications with localization from breaking#9

Open
michaelklopf wants to merge 3 commits intoYieldStudio:mainfrom
suenerds:main
Open

Fix location of lang files to prevent applications with localization from breaking#9
michaelklopf wants to merge 3 commits intoYieldStudio:mainfrom
suenerds:main

Conversation

@michaelklopf
Copy link

@michaelklopf michaelklopf commented Jan 26, 2024

Laravel moved the language files with version 9 from the /resources/lang folder to the /lang folder.

Running the php artisan vendor:publish --provider="YieldStudio\NovaGoogleAutocomplete\FieldServiceProvider" command creates files in the /resources/lang folder.

The default lang path in Laravel is /lang. Laravel checks if any files reside in /resources/lang and changes the lang path to /resources/lang if this is true.

This breaks the existing application as it can't find language files in /lang anymore.

This PR fixes where the files are placed, how they are retrieved and adapts the documentation.

close #10

@mostafaznv
Copy link

upvote

@JamesHemery JamesHemery self-assigned this May 13, 2024
@wasitum
Copy link

wasitum commented Jun 18, 2024

upvote

1 similar comment
@dominik-eller
Copy link

upvote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Fix location of lang files to prevent applications with localization from breaking

5 participants