Skip to content

Commit

Permalink
Merge pull request #579 from zendesk/gianluca/fix-request-locale
Browse files Browse the repository at this point in the history
fix: display translated error messages for service submission
  • Loading branch information
Fredx87 authored Feb 12, 2025
2 parents 5a245c8 + 2890f01 commit 4a654a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/service-catalog/submitServiceItemRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function submitServiceItemRequest(
value: field.value,
};
});
const response = await fetch("/api/v2/requests", {
const response = await fetch(`/api/v2/requests?locale=${baseLocale}`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand All @@ -43,7 +43,6 @@ export async function submitServiceItemRequest(
channel: "web form",
source: 50,
},
locale: baseLocale,
},
}),
});
Expand Down

0 comments on commit 4a654a0

Please sign in to comment.