below is my MB custom meta for User, i just want to have a form for user to update their account info wordpress.
i paste this code to functions.php, already show up.
But i cannot translate it, it cannot translate, other MB custom field can be translated normally, not this one:
add_filter( 'rwmb_meta_boxes', 'account_info' );
function account_info( $meta_boxes ) {
$prefix = '';
$meta_boxes[] = [
'title' => __( 'Email - Account Password', 'text-domain' ),
'id' => 'account-info',
'type' => 'user',
'fields' => [
[
'name' => __( 'Email', 'text-domain' ),
'id' => $prefix . 'user_email',
'type' => 'email',
'desc' => __( '', 'text-domain' ),
],
[
'name' => __( 'New Account Password', 'text-domain' ),
'id' => $prefix . 'user_pass',
'type' => 'password',
'label_description' => __( 'Account password, not password for encrypted message', 'text-domain' ),
'desc' => __( 'Enter new password if you want to change', 'text-domain' ),
'placeholder' => __( '', 'text-domain' ),
],
[
'name' => __( 'Your nick name', 'text-domain' ),
'id' => $prefix . 'display_name',
'type' => 'text',
],
],
];
return $meta_boxes;
}