public function trans($route, $locale = null) { if (!in_array($route, $this->translatedRoutes)) { $this->translatedRoutes[] = $route; } return $this->translate($route, $locale); }