src/Mailer/Mailer.php
protected function fixateLocale() {
		$this->locale = I18n::getLocale();

		$primaryLocale = $this->getPrimaryLocale();
		if ($primaryLocale && $primaryLocale !== $this->locale) {
			I18n::setLocale($primaryLocale);
		}
	}
protected function fixateLocale() {
		$this->locale = I18n::getLocale();

		$primaryLocale = $this->getPrimaryLocale();
		if ($primaryLocale && $primaryLocale !== $this->locale) {
			I18n::setLocale($primaryLocale);
		}
	}
protected function fixateLocale ( ) { $ this -> locale = I18n :: getLocale ( ) ; $ primaryLocale = $ this -> getPrimaryLocale ( ) ; if ( $ primaryLocale && $ primaryLocale !== $ this -> locale ) { I18n :: setLocale ( $ primaryLocale ) ; } }
Switch to primary locale if applicable.

@return void
Switch to primary locale if applicable .