Skip to content

Commit

Permalink
remove translator service call in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
reliq committed Oct 17, 2023
1 parent a4a81fb commit 846ac6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@
/**
* Message returned from endpoint when language was switched. Set to 'null' to disable.
*/
'confirmation_text' => __('Language switched.'),
'confirmation_text' => 'Language switched.',
],
];
2 changes: 1 addition & 1 deletion src/Http/Controller/LanguageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ public function switchLanguage(ConfigProvider $configProvider, Request $request)
return $confirmationText === null
? redirect()->back()
: redirect()->back()
->with('message', $confirmationText);
->with('message', __($confirmationText));
}
}

0 comments on commit 846ac6b

Please sign in to comment.