feat: Update maintenance messages and localize billing labels in InvoiceItem and OrderItem models
This commit is contained in:
@@ -53,7 +53,7 @@ class InetDomainController extends Controller
|
|||||||
if (! $apiKey) {
|
if (! $apiKey) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'error' => true,
|
'error' => true,
|
||||||
'message' => 'Chưa cấu hình API key iNET (api_inet).',
|
'message' => 'Chức năng đang bảo trì! Vui lòng thử lại sau.',
|
||||||
], 400);
|
], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ class InetDomainController extends Controller
|
|||||||
if (! $apiKey) {
|
if (! $apiKey) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'error' => true,
|
'error' => true,
|
||||||
'message' => 'Chưa cấu hình API key iNET (api_inet).',
|
'message' => 'Chức năng đang bảo trì! Vui lòng thử lại sau.',
|
||||||
], 400);
|
], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ class InetDomainController extends Controller
|
|||||||
if (! $apiKey) {
|
if (! $apiKey) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'error' => true,
|
'error' => true,
|
||||||
'message' => 'Chưa cấu hình API key iNET (api_inet).',
|
'message' => 'Chức năng đang bảo trì! Vui lòng thử lại sau.',
|
||||||
], 400);
|
], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -176,7 +176,7 @@ class InetDomainController extends Controller
|
|||||||
if (! $apiKey) {
|
if (! $apiKey) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'error' => true,
|
'error' => true,
|
||||||
'message' => 'Chưa cấu hình API key iNET (api_inet).',
|
'message' => 'Chức năng đang bảo trì! Vui lòng thử lại sau.',
|
||||||
], 400);
|
], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -231,7 +231,7 @@ class InetDomainController extends Controller
|
|||||||
if (! $apiKey) {
|
if (! $apiKey) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'error' => true,
|
'error' => true,
|
||||||
'message' => 'Chưa cấu hình API key iNET (api_inet).',
|
'message' => 'Chức năng đang bảo trì! Vui lòng thử lại sau.',
|
||||||
], 400);
|
], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,14 +34,14 @@ class InvoiceItem extends Model
|
|||||||
public function getBillingLabelAttribute(): string
|
public function getBillingLabelAttribute(): string
|
||||||
{
|
{
|
||||||
return match ((int) $this->months) {
|
return match ((int) $this->months) {
|
||||||
0 => 'One Time',
|
0 => 'Một lần',
|
||||||
1 => 'Monthly',
|
1 => 'Hàng tháng',
|
||||||
3 => 'Quarterly',
|
3 => 'Hàng quý',
|
||||||
6 => 'Semi-Annually',
|
6 => 'Nửa năm',
|
||||||
12 => 'Annually',
|
12 => 'Hàng năm',
|
||||||
24 => '2 Years',
|
24 => '2 năm',
|
||||||
36 => '3 Years',
|
36 => '3 năm',
|
||||||
default => $this->months . ' Months',
|
default => $this->months . ' tháng',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,14 +64,14 @@ class OrderItem extends Model
|
|||||||
public function getBillingLabelAttribute(): string
|
public function getBillingLabelAttribute(): string
|
||||||
{
|
{
|
||||||
return match ((int) $this->months) {
|
return match ((int) $this->months) {
|
||||||
0 => 'One Time',
|
0 => 'Một lần',
|
||||||
1 => 'Monthly',
|
1 => 'Hàng tháng',
|
||||||
3 => 'Quarterly',
|
3 => 'Hàng quý',
|
||||||
6 => 'Semi-Annually',
|
6 => 'Nửa năm',
|
||||||
12 => 'Annually',
|
12 => 'Hàng năm',
|
||||||
24 => '2 Years',
|
24 => '2 năm',
|
||||||
36 => '3 Years',
|
36 => '3 năm',
|
||||||
default => $this->months . ' Months',
|
default => $this->months . ' tháng',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user