1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Set locale for migrated companies

This commit is contained in:
David Bomba 2022-01-05 17:12:10 +11:00
parent 2362ecb137
commit 66843e6397

View File

@ -304,6 +304,7 @@ class MigrationController extends BaseController
App::forgetInstance('translator');
$t = app('translator');
$t->replace(Ninja::transformTranslations($user->account->companies()->first()->settings));
App::setLocale($user->account->companies()->first()->getLocale());
if(!$existing_company && $company_count >=10) {