Would it be possible to use:
```php
if ($localeNeededLoading) {
   Events::fire('on_locale_change', $locale);
}
```
If not, did you check how often setLocale gets called?