$paths = ['resources/views'];
$translate = new \Cubist\Locale\Translate();
foreach ($paths as $path) {
- $translate->addPath(app_path() . '/' . $path);
+ $translate->addPath(base_path() . '/' . $path);
}
+ $translate->parseFiles();
+
$this->addField(['name' => 'k',
'label' => '-',
'type' => 'Hidden',
$key = 't_' . base64_encode($string);
$this->addField(['name' => $key,
- 'label' => $string,
- 'type' => 'Text',
+ 'label' => e($string),
+ 'type' => 'Textarea',
'translatable' => true,
'store_in' => 'content',
'fake' => true]);