scribe: Missing Translation after Update
Scribe version
4.19.0
PHP version
8.1
Framework and version
9.52.7
Scribe config
auth.enabled => true
auth.default => true
What happened?
The Translation is broken after update in all my sites. Also local in dev.
This is shown as link and as Header
scribe::headers.introduction scribe::base_url: http://localhost
or like this
sribe::endpoint.request scribe::try_it_out.open
POST api/login
I delete .scribe folder and public docs folder. Clear cache and generate new but the same.
Docs
- I’ve checked the docs, the troubleshooting guide, and existing issues, but I didn’t find a solution
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 25 (12 by maintainers)
Here’s what I believe is the root cause, after some experimentation.
The default scribe lang file is published to:
resources/lang/vendor/scribe/en.jsonHowever, during
scribe:generate, translations are being looked for inresources/lang/en.jsoninstead ofresources/lang/vendor/scribe/en.json.When manually copying
resources/lang/vendor/scribe/en.jsontoresources/lang/en.json, everything works.Related: the documentation at https://scribe.knuckles.wtf/laravel/advanced/localization incorrectly states otherwise:
Does this give you enough of a hint as to how to resolve it? I’m guessing the high level solution is to ensure that the path to the lang file is consistently prefixed with
vendor/scribe/.UPDATE: providing my details as requested.
resources/lang/en/(auth|pagination|passwords|validation).php)resources/lang/vendor/scribe.