concrete/src/Localization/Localization.php
protected function currentLocaleChanged($locale)
    {
        PunicData::setDefaultLocale($locale);
        $app = Facade::getFacadeApplication();
        if ($app->bound('director')) {
            $event = new \Symfony\Component\EventDispatcher\GenericEvent();
            $event->setArgument('locale', $locale);
            $app->make('director')->dispatch('on_locale_load', $event);
        }
    }
protected function currentLocaleChanged($locale)
    {
        PunicData::setDefaultLocale($locale);
        $app = Facade::getFacadeApplication();
        if ($app->bound('director')) {
            $event = new \Symfony\Component\EventDispatcher\GenericEvent();
            $event->setArgument('locale', $locale);
            $app->make('director')->dispatch('on_locale_load', $event);
        }
    }
protected function currentLocaleChanged ( $ locale ) { PunicData :: setDefaultLocale ( $ locale ) ; $ app = Facade :: getFacadeApplication ( ) ; if ( $ app -> bound ( 'director' ) ) { $ event = new \ Symfony \ Component \ EventDispatcher \ GenericEvent ( ) ; $ event -> setArgument ( 'locale' , $ locale ) ; $ app -> make ( 'director' ) -> dispatch ( 'on_locale_load' , $ event ) ; } }
To be called every time the current locale changes.

@param string $locale
To be called every time the current locale changes .