$mix = 'const mix = require("laravel-mix");';
foreach ($this->mixDirectories as $from => $to) {
- if (!file_exists($this->compilePath ."/". $from)) {
- Log::debug('skip ' . $this->compilePath .'/'. $from);
+ if (!file_exists($this->compilePath . "/" . $from)) {
+ Log::debug('skip ' . $this->compilePath . '/' . $from);
continue;
}
$mix .= 'mix.copyDirectory("' . $from . '","' . $to . '");';
protected function getTranslations()
{
+
$res = ElearningTranslate::getLocaleTranslations($this->data->translation, true);
if (is_array($this->data->translations)) {
$res = array_merge($res, $this->data->translations);