You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I'm using the Respect Validation library within the Webman framework, and the validation error messages are being returned in Chinese by default. I would like to change the error messages to English.
Observe the json response that the validation message is returned in Chinese.
Expected Behavior
Validation error messages should be returned in English by default, or there should be an easy way to configure the default language.
Current Behavior
The validation messages are returned in Chinese, and I haven't found a way to switch them to English.
Additional Context
I've changed the default locale to "en" but no result.
I've checked the documentation but couldn't find a clear way to set the language for validation messages in Webman.
The text was updated successfully, but these errors were encountered:
You're setting a translator to gettext(), and if you're getting Chinese translations, it's because you have configured it to be in Chinese, and you also have the translations set for those messages. Why do you need to set up the translator if you need the messages to be in English?
Description
I'm using the Respect Validation library within the Webman framework, and the validation error messages are being returned in Chinese by default. I would like to change the error messages to English.
Steps to Reproduce
Expected Behavior
Validation error messages should be returned in English by default, or there should be an easy way to configure the default language.
Current Behavior
The validation messages are returned in Chinese, and I haven't found a way to switch them to English.
Example of name validation :
Environment
PHP version: 8.3.12
Webman version: 1.5.0
Workerman/Respect Validation version : 3.1
Respect/Validation version: X.X.X
Additional Context
I've changed the default locale to "en" but no result.
I've checked the documentation but couldn't find a clear way to set the language for validation messages in Webman.
The text was updated successfully, but these errors were encountered: