Skip to content

Commit 9c86981

Browse files
committed
add translatable
1 parent 376fd9e commit 9c86981

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

traits/RequestParamActionTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use ReflectionException;
1616
use ReflectionMethod;
1717
use ReflectionParameter;
18+
use Yii;
1819
use yii\helpers\Inflector;
1920

2021
/**
@@ -118,7 +119,7 @@ private function generateJson($parameters, $actionId)
118119

119120
// init main json struct object with defaults
120121
$jsonStruct = new \stdClass();
121-
$jsonStruct->title = 'Request Params';
122+
$jsonStruct->title = Yii::t('pages', 'Request Params');
122123
$jsonStruct->type = "object";
123124
$jsonStruct->properties = [];
124125

0 commit comments

Comments
 (0)