Replies: 2 comments
-
|
I have the same problem, where I don't know which messages possibly exist. Digging through the source code proved unsuccessful. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@guoyunhe Does make sense. Would you be interested in creating a PR for it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel provides a command
php artisan lang:publishwhich will eject all framework built-in validator/error handling messages tolang/en/messages.php.This is a very convenient way to start translation. Otherwise, you have try and guess which message key need to be translated.
My suggestion: when run
node ace add @adonisjs/i18n, auto create/resources/lang/en/validator.json. So that users can use it to start translation.Beta Was this translation helpful? Give feedback.
All reactions