Complete dashboard translations & small UI improvements (#69)

* fix dropdown action Estimate Dashboard and fix translating full Dasboard page

* Update app.php

* fix locale in app.php config

* Wizard install with translation, customer portal with translation, and fixing hardcoding strings to get translation

* fixes asked to review

* fixes pint

---------

Co-authored-by: Max <contact@agencetwogether.fr>
Co-authored-by: Darko Gjorgjijoski <5760249+gdarko@users.noreply.github.com>
This commit is contained in:
agencetwogether
2024-06-05 12:07:46 +02:00
committed by GitHub
parent 3259173066
commit 3b61440e1f
89 changed files with 925 additions and 213 deletions

View File

@@ -19,11 +19,13 @@ class OnboardingWizardController extends Controller
if (! InstallUtils::dbMarkerExists()) {
return response()->json([
'profile_complete' => 0,
'profile_language' => 'en',
]);
}
return response()->json([
'profile_complete' => Setting::getSetting('profile_complete'),
'profile_language' => Setting::getSetting('profile_language'),
]);
}
@@ -43,4 +45,13 @@ class OnboardingWizardController extends Controller
'profile_complete' => Setting::getSetting('profile_complete'),
]);
}
public function saveLanguage(Request $request)
{
Setting::setSetting('profile_language', $request->profile_language);
return response()->json([
'profile_language' => Setting::getSetting('profile_language'),
]);
}
}