Skip to content

Commit

Permalink
Switch to User language on API Requests
Browse files Browse the repository at this point in the history
  • Loading branch information
gevorgmansuryan committed Aug 13, 2024
1 parent 5c1f11b commit 72de164
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use humhub\components\Controller;
use humhub\modules\content\models\Content;
use humhub\modules\rest\components\auth\ImpersonateAuth;
use humhub\modules\rest\components\behaviors\LanguagePickerBehavior;
use humhub\modules\rest\components\User as UserComponent;
use humhub\modules\rest\components\auth\JwtAuth;
use humhub\modules\rest\controllers\auth\AuthController;
Expand Down Expand Up @@ -81,6 +82,9 @@ public function behaviors()
]]
),
],
'languagePicker' => [
'class' => LanguagePickerBehavior::class,
]
], parent::behaviors());
}

Expand Down

0 comments on commit 72de164

Please sign in to comment.