1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Merge pull request #9571 from dshoreman/ds/fix-bank-regional-langs

Trim regional locales to two-letter country codes
This commit is contained in:
David Bomba 2024-06-01 08:50:43 +10:00 committed by GitHub
commit ea57154863
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,7 @@ class NordigenController extends BaseController
/** @var array $context */
$context = $request->getTokenContent();
$company = $request->getCompany();
$lang = $company->locale();
$lang = substr($company->locale(), 0, 2);
$context["lang"] = $lang;
if (!$context) {
@ -143,7 +143,7 @@ class NordigenController extends BaseController
$data = $request->all();
$company = $request->getCompany();
$account = $company->account;
$lang = $company->locale();
$lang = substr($company->locale(), 0, 2);
/** @var array $context */
$context = $request->getTokenContent();