-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Reset Password Page → Translations are not yet possible for the error messages #2512
Comments
To translate Laravel messages (validation errors, ...) you must add translated files in Here you can find translated message for a lot of languages: https://github.com/Laravel-Lang/lang |
Thanks for this hint. A fresh statamic installation contains already a
Upps, I missed the last section 'Custom Validation Attributes' in That should be good. |
Still it would be good to know, where these Laravel messages (validation errors, ...) are used throughout the statamic eco-system? If translation files for them can added with a fresh installation or if the docs needs a section on how to add these files after installation? |
This issue has not had recent activity and has been marked as stale — by me, a robot. Simply reply to keep it open and send me away. If you do nothing, I will close it in a week. I have no feelings, so whatever you do is fine by me. |
💨🤖 |
Like @billmn said, these translations aren't handled by Statamic's translations but by the default Laravel ones that ship with your app. (as Statamic uses the same authentication under the hood as Laravel and therefore shares the error messages). I've had a quick look but it doesn't look like there's official Laravel translations for authentication and basic validation. However, I've found this community repository which could be helpful. You should be able to copy in the relevant translation files for your app. I do agree though that maybe this could be documented as it would be weird for the rest of the Statamic CP to be translated but not for the authentication stuff to be. Maybe this issue belongs inside the |
Thanks for pointing this out again. I agree, it might be something for the docs. So I close this issue here. |
Bug Description
The red validation error messages are not yet possible to translate.
Environment
Statamic 3.0.12 Pro
Laravel 7.28.3
PHP 7.4.6
No addons installed
Install method (choose one):
statamic/statamic
The text was updated successfully, but these errors were encountered: