Add locale on product listing
This commit is contained in:
parent
4c9d754d02
commit
466a6a33f8
|
|
@ -144,7 +144,7 @@
|
|||
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `https://nurgul.com.tm/app/api/vendor/{{user.seller_id}}`,
|
||||
url: `https://nurgul.com.tm/app/api/vendor/{{user.seller_id}}??locale=tm`,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
success: async function (data, textStatus, xhr) {
|
||||
|
|
@ -175,7 +175,7 @@
|
|||
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `https://nurgul.com.tm/app/api/seller/products/{{user.seller_id}}/{{id}}`,
|
||||
url: `https://nurgul.com.tm/app/api/seller/products/{{user.seller_id}}/{{id}}?locale=tm`,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
function getProducts(limit, page) {
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
url: `https://nurgul.com.tm/app/api/seller/products/{{user.seller_id}}?limit=`+limit + `&page=` + page,
|
||||
url: `https://nurgul.com.tm/app/api/seller/products/{{user.seller_id}}?locale=tm&limit=`+limit + `&page=` + page,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue