@@ -49,26 +49,26 @@ for method in $VALIDATOR_METHODS; do
4949 done
5050
5151 strArgs=$( IFS=,; echo " ${args[*]} " | sed ' s/,/, /g' )
52- translate=' __( ' \' $methodName \' ' )'
52+ translate=' __d( ' \' ' validation ' \' ' , ' \' $methodName \' ' )'
5353
5454 # hasAtLeast / hasAtMost
5555 if [[ " ${args[@]} " =~ " \$ count " ]]; then
56- translate=' __( ' \' $methodName ' {0}' \' ' , $count)' ;
56+ translate=' __d( ' \' ' validation ' \' ' , ' \' $methodName ' {0}' \' ' , $count)' ;
5757 fi
5858
5959 # minLength / minLengthBytes
6060 if [[ " ${args[@]} " =~ " \$ min " ]]; then
61- translate=' __( ' \' $methodName ' {0}' \' ' , $min)' ;
61+ translate=' __d( ' \' ' validation ' \' ' , ' \' $methodName ' {0}' \' ' , $min)' ;
6262 fi
6363
6464 # maxLength / maxLengthBytes
6565 if [[ " ${args[@]} " =~ " \$ max " ]]; then
66- translate=' __( ' \' $methodName ' {0}' \' ' , $max)' ;
66+ translate=' __d( ' \' ' validation ' \' ' , ' \' $methodName ' {0}' \' ' , $max)' ;
6767 fi
6868
6969 # lengthBetween / range
7070 if [[ " ${args[@]} " =~ " \$ range " ]]; then
71- translate=' __( ' \' $methodName ' {0} to {1}' \' ' , $range[0], $range[1])' ;
71+ translate=' __d( ' \' ' validation ' \' ' , ' \' $methodName ' {0} to {1}' \' ' , $range[0], $range[1])' ;
7272 fi
7373
7474 echo ' /**'
0 commit comments