Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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

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
4 participants