mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
Set locale for migrated companies
This commit is contained in:
parent
2362ecb137
commit
66843e6397
@ -304,6 +304,7 @@ class MigrationController extends BaseController
|
|||||||
App::forgetInstance('translator');
|
App::forgetInstance('translator');
|
||||||
$t = app('translator');
|
$t = app('translator');
|
||||||
$t->replace(Ninja::transformTranslations($user->account->companies()->first()->settings));
|
$t->replace(Ninja::transformTranslations($user->account->companies()->first()->settings));
|
||||||
|
App::setLocale($user->account->companies()->first()->getLocale());
|
||||||
|
|
||||||
if(!$existing_company && $company_count >=10) {
|
if(!$existing_company && $company_count >=10) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user