/** * Sets the locale for translations * * @param string $locale Locale to use for the translation, e.g. 'fr_FR' * * @return The current object (for fluent API support) */ public function setLocale($locale = '') { $this->currentLocale = $locale; return $this; }