1
0
mirror of https://github.com/flarum/core.git synced 2025-10-18 10:16:09 +02:00

Fix locale JS files not being added; add (temporary?) API to add locale CSS files

fixes flarum/core#970
This commit is contained in:
Toby Zerner
2016-09-03 22:22:36 +09:30
parent 44726633ce
commit df247925d4
3 changed files with 32 additions and 0 deletions

View File

@@ -63,6 +63,10 @@ class ConfigureLocales
$this->locales->addJsFile($locale, $file);
}
if (file_exists($file = $localeDir.'/config.css')) {
$this->locales->addCssFile($locale, $file);
}
foreach (new DirectoryIterator($localeDir) as $file) {
if ($file->isFile() && in_array($file->getExtension(), ['yml', 'yaml'])) {
$this->locales->addTranslations($locale, $file->getPathname());