1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-09 06:36:52 +02:00

Plugins: using flextype-components/i18n v1.1.0

This commit is contained in:
Awilum
2018-11-10 00:54:29 +03:00
parent 192c16ea13
commit 5e84bc7514

View File

@@ -154,7 +154,7 @@ class Plugins
foreach ($plugins_list as $plugin) {
$language_file = PATH['plugins'] . '/' . $plugin . '/languages/' . $locale . '.yaml';
if (Filesystem::fileExists($language_file)) {
I18n::add($plugin, $locale, Yaml::parseFile($language_file));
I18n::add(Yaml::parseFile($language_file), $locale);
}
}
}