getSupportedLocales() публичный метод

public getSupportedLocales ( ) : array
Результат array
Пример #1
0
 /**
  * Creates the localization directories and files by domain
  *
  * @return array
  * @throws FileCreationException
  */
 public function generateLocales()
 {
     // Application base path
     $this->createDirectory($this->getDomainPath());
     $localePaths = [];
     // Locale directories
     foreach ($this->configuration->getSupportedLocales() as $locale) {
         $localePath = $this->getDomainPath($locale);
         if (!file_exists($localePath)) {
             // Locale directory is created
             $this->addLocale($localePath, $locale);
             array_push($localePaths, $localePath);
         }
     }
     return $localePaths;
 }