add pt_BR language option

This commit is contained in:
cilas
2019-12-26 22:47:09 -03:00
parent 56a955befd
commit 79e3e70bd6
2 changed files with 8 additions and 5 deletions

View File

@ -19,7 +19,7 @@ use Crater\Currency;
use Crater\CompanySetting;
class CompanyController extends Controller
{
{
/**
* Retrive the Admin account.
* @return \Crater\User
@ -66,9 +66,9 @@ class CompanyController extends Controller
}
/**
* Get Admin Account alongside the country from the addresses table and
* Get Admin Account alongside the country from the addresses table and
* The company from companies table
*
* @return \Illuminate\Http\JsonResponse
@ -148,6 +148,7 @@ class CompanyController extends Controller
["code"=>"fr", "name" => "French"],
["code"=>"es", "name" => "Spanish"],
["code"=>"ar", "name" => "العربية"],
["code"=>"pt_BR", "name" => "Portuguese"],
];
return response()->json([
@ -191,7 +192,7 @@ class CompanyController extends Controller
'success' => true
]);
}
public function getCustomizeSetting (Request $request)
{
$invoice_prefix = CompanySetting::getSetting('invoice_prefix', $request->header('company'));