@@ -49,26 +49,26 @@ for method in $VALIDATOR_METHODS; do
49
49
done
50
50
51
51
strArgs=$( IFS=,; echo " ${args[*]} " | sed ' s/,/, /g' )
52
- translate=' __( ' \' $methodName \' ' )'
52
+ translate=' __d( ' \' ' validation ' \' ' , ' \' $methodName \' ' )'
53
53
54
54
# hasAtLeast / hasAtMost
55
55
if [[ " ${args[@]} " =~ " \$ count " ]]; then
56
- translate=' __( ' \' $methodName ' {0}' \' ' , $count)' ;
56
+ translate=' __d( ' \' ' validation ' \' ' , ' \' $methodName ' {0}' \' ' , $count)' ;
57
57
fi
58
58
59
59
# minLength / minLengthBytes
60
60
if [[ " ${args[@]} " =~ " \$ min " ]]; then
61
- translate=' __( ' \' $methodName ' {0}' \' ' , $min)' ;
61
+ translate=' __d( ' \' ' validation ' \' ' , ' \' $methodName ' {0}' \' ' , $min)' ;
62
62
fi
63
63
64
64
# maxLength / maxLengthBytes
65
65
if [[ " ${args[@]} " =~ " \$ max " ]]; then
66
- translate=' __( ' \' $methodName ' {0}' \' ' , $max)' ;
66
+ translate=' __d( ' \' ' validation ' \' ' , ' \' $methodName ' {0}' \' ' , $max)' ;
67
67
fi
68
68
69
69
# lengthBetween / range
70
70
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])' ;
72
72
fi
73
73
74
74
echo ' /**'
0 commit comments