mirror of
https://github.com/flarum/core.git
synced 2025-07-25 10:41:24 +02:00
fixed symfony translator now using catalogues
This commit is contained in:
@@ -158,7 +158,7 @@ abstract class AbstractFrontend
|
|||||||
*/
|
*/
|
||||||
private function addTranslations(FrontendView $view)
|
private function addTranslations(FrontendView $view)
|
||||||
{
|
{
|
||||||
$translations = array_get($this->locales->getTranslator()->getMessages(), 'messages', []);
|
$translations = array_get($this->locales->getTranslator()->getCatalogue()->all(), 'messages', []);
|
||||||
|
|
||||||
$translations = $this->filterTranslations($translations);
|
$translations = $this->filterTranslations($translations);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user