mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 20:21:10 -04:00
add pt_BR language option
This commit is contained in:
@ -19,7 +19,7 @@ use Crater\Currency;
|
|||||||
use Crater\CompanySetting;
|
use Crater\CompanySetting;
|
||||||
|
|
||||||
class CompanyController extends Controller
|
class CompanyController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Retrive the Admin account.
|
* Retrive the Admin account.
|
||||||
* @return \Crater\User
|
* @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
|
* The company from companies table
|
||||||
*
|
*
|
||||||
* @return \Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\JsonResponse
|
||||||
@ -148,6 +148,7 @@ class CompanyController extends Controller
|
|||||||
["code"=>"fr", "name" => "French"],
|
["code"=>"fr", "name" => "French"],
|
||||||
["code"=>"es", "name" => "Spanish"],
|
["code"=>"es", "name" => "Spanish"],
|
||||||
["code"=>"ar", "name" => "العربية"],
|
["code"=>"ar", "name" => "العربية"],
|
||||||
|
["code"=>"pt_BR", "name" => "Portuguese"],
|
||||||
];
|
];
|
||||||
|
|
||||||
return response()->json([
|
return response()->json([
|
||||||
@ -191,7 +192,7 @@ class CompanyController extends Controller
|
|||||||
'success' => true
|
'success' => true
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCustomizeSetting (Request $request)
|
public function getCustomizeSetting (Request $request)
|
||||||
{
|
{
|
||||||
$invoice_prefix = CompanySetting::getSetting('invoice_prefix', $request->header('company'));
|
$invoice_prefix = CompanySetting::getSetting('invoice_prefix', $request->header('company'));
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import en from './en.json'
|
|||||||
import fr from './fr.json'
|
import fr from './fr.json'
|
||||||
import es from './es.json'
|
import es from './es.json'
|
||||||
import ar from './ar.json'
|
import ar from './ar.json'
|
||||||
|
import pt_BR from './pt-br.json'
|
||||||
|
|
||||||
Vue.use(VueI18n)
|
Vue.use(VueI18n)
|
||||||
|
|
||||||
@ -13,7 +14,8 @@ const i18n = new VueI18n({
|
|||||||
en,
|
en,
|
||||||
fr,
|
fr,
|
||||||
es,
|
es,
|
||||||
ar
|
ar,
|
||||||
|
pt_BR
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user