diff --git a/packages/Sarga/API/Http/Resources/Customer/OrderResource.php b/packages/Sarga/API/Http/Resources/Customer/OrderResource.php
index e73c14fba..278929074 100644
--- a/packages/Sarga/API/Http/Resources/Customer/OrderResource.php
+++ b/packages/Sarga/API/Http/Resources/Customer/OrderResource.php
@@ -27,7 +27,7 @@ class OrderResource extends JsonResource
return [
'id' => $this->id,
'status' => $this->status,
- 'status_label' => trans('admin::app.sales.order-status-'.$this->status),
+ 'status_label' => trans('sarga-api::app.orders.order-status-'.$this->status),
'shipping_method' => $this->shipping_method,
'shipping_title' => $this->shipping_title,
'payment_title' => core()->getConfigData('sales.paymentmethods.' . $this->payment->method . '.title'),
diff --git a/packages/Sarga/API/Providers/APIServiceProvider.php b/packages/Sarga/API/Providers/APIServiceProvider.php
index ff0cf4814..e1fd2e6a5 100644
--- a/packages/Sarga/API/Providers/APIServiceProvider.php
+++ b/packages/Sarga/API/Providers/APIServiceProvider.php
@@ -16,6 +16,7 @@ class APIServiceProvider extends ServiceProvider
include __DIR__ . '/../Http/helpers.php';
$this->loadRoutesFrom(__DIR__.'/../Http/routes.php');
+ $this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'sarga-api');
$router->aliasMiddleware('scrap', Scrap::class);
}
diff --git a/packages/Sarga/API/Resources/lang/en/app.php b/packages/Sarga/API/Resources/lang/en/app.php
new file mode 100644
index 000000000..a177a4ca4
--- /dev/null
+++ b/packages/Sarga/API/Resources/lang/en/app.php
@@ -0,0 +1,72 @@
+ [
+ 'title' => 'Orders',
+ 'view-title' => 'Order #:order_id',
+ 'cancel-btn-title' => 'Cancel',
+ 'shipment-btn-title' => 'Ship',
+ 'invoice-btn-title' => 'Invoice',
+ 'info' => 'Information',
+ 'invoices' => 'Invoices',
+ 'shipments' => 'Shipments',
+ 'order-and-account' => 'Order and Account',
+ 'order-info' => 'Order Information',
+ 'order-date' => 'Order Date',
+ 'order-status' => 'Order Status',
+ 'order-status-canceled' => 'Canceled',
+ 'order-status-closed' => 'Closed',
+ 'order-status-fraud' => 'Fraud',
+ 'order-status-pending' => 'Pending',
+ 'order-status-pending-payment' => 'Pending Payment',
+ 'order-status-processing' => 'Processing',
+ 'order-status-success' => 'Completed',
+ 'channel' => 'Channel',
+ 'customer-name' => 'Customer Name',
+ 'email' => 'Email',
+ 'contact-number' => 'Contact Number',
+ 'account-info' => 'Account Information',
+ 'address' => 'Address',
+ 'shipping-address' => 'Shipping Address',
+ 'billing-address' => 'Billing Address',
+ 'payment-and-shipping' => 'Payment and Shipping',
+ 'payment-info' => 'Payment Information',
+ 'payment-method' => 'Payment Method',
+ 'currency' => 'Currency',
+ 'shipping-info' => 'Shipping Information',
+ 'shipping-method' => 'Shipping Method',
+ 'shipping-price' => 'Shipping Price',
+ 'products-ordered' => 'Products Ordered',
+ 'SKU' => 'SKU',
+ 'product-name' => 'Product Name',
+ 'qty' => 'Qty',
+ 'item-status' => 'Item Status',
+ 'item-ordered' => 'Ordered (:qty_ordered)',
+ 'item-invoice' => 'Invoiced (:qty_invoiced)',
+ 'item-shipped' => 'Shipped (:qty_shipped)',
+ 'item-canceled' => 'Canceled (:qty_canceled)',
+ 'item-refunded' => 'Refunded (:qty_refunded)',
+ 'price' => 'Price',
+ 'total' => 'Total',
+ 'subtotal' => 'Subtotal',
+ 'shipping-handling' => 'Shipping & Handling',
+ 'discount' => 'Discount',
+ 'tax' => 'Tax',
+ 'tax-percent' => 'Tax Percent',
+ 'tax-amount' => 'Tax Amount',
+ 'discount-amount' => 'Discount Amount',
+ 'grand-total' => 'Grand Total',
+ 'total-paid' => 'Total Paid',
+ 'total-refunded' => 'Total Refunded',
+ 'total-due' => 'Total Due',
+ 'cancel-confirm-msg' => 'Are you sure you want to cancel this order ?',
+ 'refund-btn-title' => 'Refund',
+ 'refunds' => 'Refunds',
+ 'comment-added-success' => 'Comment addded successfully.',
+ 'comment' => 'Comment',
+ 'submit-comment' => 'Submit Comment',
+ 'notify-customer' => 'Notify Customer',
+ 'customer-notified' => ':date | Customer Notified',
+ 'customer-not-notified' => ':date | Customer Not Notified',
+ 'transactions' => 'Transactions',
+ ],
+];
diff --git a/packages/Sarga/API/Resources/lang/tm/app.php b/packages/Sarga/API/Resources/lang/tm/app.php
new file mode 100644
index 000000000..42b621860
--- /dev/null
+++ b/packages/Sarga/API/Resources/lang/tm/app.php
@@ -0,0 +1,25 @@
+ [
+ 'title' => 'Orders',
+ 'view-title' => 'Order #:order_id',
+ 'cancel-btn-title' => 'Cancel',
+ 'shipment-btn-title' => 'Ship',
+ 'invoice-btn-title' => 'Invoice',
+ 'info' => 'Information',
+ 'invoices' => 'Invoices',
+ 'shipments' => 'Shipments',
+ 'order-and-account' => 'Order and Account',
+ 'order-info' => 'Order Information',
+ 'order-date' => 'Order Date',
+ 'order-status' => 'Order Status',
+ 'order-status-canceled' => 'Ýatyrylan',
+ 'order-status-closed' => 'Gaýtarylan',
+ 'order-status-fraud' => 'Näsaz',
+ 'order-status-pending' => 'Garaşylýar',
+ 'order-status-pending-payment' => 'Tölege garaşylýar',
+ 'order-status-processing' => 'Işlenilýär',
+ 'order-status-success' => 'Tamamlandy',
+
+ ],
+];
\ No newline at end of file
diff --git a/packages/Sarga/API/Resources/lang/tr/app.php b/packages/Sarga/API/Resources/lang/tr/app.php
new file mode 100644
index 000000000..df39bc573
--- /dev/null
+++ b/packages/Sarga/API/Resources/lang/tr/app.php
@@ -0,0 +1,25 @@
+ [
+ 'title' => 'Orders',
+ 'view-title' => 'Order #:order_id',
+ 'cancel-btn-title' => 'Cancel',
+ 'shipment-btn-title' => 'Ship',
+ 'invoice-btn-title' => 'Invoice',
+ 'info' => 'Information',
+ 'invoices' => 'Invoices',
+ 'shipments' => 'Shipments',
+ 'order-and-account' => 'Order and Account',
+ 'order-info' => 'Order Information',
+ 'order-date' => 'Order Date',
+ 'order-status' => 'Order Status',
+ 'order-status-canceled' => 'Ýatyrylan',
+ 'order-status-closed' => 'Gaýtarylan',
+ 'order-status-fraud' => 'Näsaz',
+ 'order-status-pending' => 'Garaşylýar',
+ 'order-status-pending-payment' => 'Tölege garaşylýar',
+ 'order-status-processing' => 'Işlenilýär',
+ 'order-status-success' => 'Tamamlandy',
+
+ ],
+];