Add locale on product listing
This commit is contained in:
parent
4c9d754d02
commit
466a6a33f8
|
|
@ -144,7 +144,7 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: async function (data, textStatus, xhr) {
|
success: async function (data, textStatus, xhr) {
|
||||||
|
|
@ -175,7 +175,7 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
function getProducts(limit, page) {
|
function getProducts(limit, page) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue