Hi,
When creating the validation message for the field, you can use the function gettext
to make the message translatable. For example:
'validation' => [
'rules' => [
'field_id' => [
'required' => true,
],
],
'messages' => [
'field_id' => [
'required' => __( 'Password is required', 'your-text-domain' )
],
],
],
Refer to the documentation https://codex.wordpress.org/I18n_for_WordPress_Developers