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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user