feat(js-sdk,types,medusa): add list locales store method to JS SDK (#14314)

* feat(js-sdk,types,medusa): add list locales store method to JS SDK

* add missing locale parameter
This commit is contained in:
Shahed Nasser
2025-12-16 11:11:49 +01:00
committed by GitHub
parent d813fc4ff9
commit accb778039
8 changed files with 58 additions and 1 deletions
@@ -1,7 +1,11 @@
import { MedusaRequest, MedusaResponse } from "@medusajs/framework/http"
import { ContainerRegistrationKeys } from "@medusajs/framework/utils"
import { HttpTypes } from "@medusajs/framework/types"
export const GET = async (req: MedusaRequest, res: MedusaResponse) => {
export const GET = async (
req: MedusaRequest,
res: MedusaResponse<HttpTypes.StoreLocaleListResponse>
) => {
const query = req.scope.resolve(ContainerRegistrationKeys.QUERY)
const {