- if ($locale !== 'en') {
- $enTrans = [
- 'common' => trans('common', [], 'en'),
- 'components' => trans('components', [], 'en'),
- 'entities' => trans('entities', [], 'en'),
- 'errors' => trans('errors', [], 'en')
- ];
- $translations = array_replace_recursive($enTrans, $translations);
- }
- $resp = 'window.translations = ' . json_encode($translations);
- cache()->put($cacheKey, $resp, 120);
+
+ $commonData = array_merge($commonData, [
+ 'view' => $view,
+ 'sort' => $sort,
+ 'order' => $order,
+ 'sortOptions' => $sortOptions,
+ ]);