chore: generate and update OAS for translations (#14281)

* chore: generate and update OAS for translations

* support localization header

* add locale to all store routes

* fixes

* small fix
This commit is contained in:
Shahed Nasser
2025-12-16 15:52:33 +02:00
committed by GitHub
parent 6815b3d7db
commit 53cdbaa069
75 changed files with 2322 additions and 6 deletions
@@ -209,6 +209,18 @@ tags:
url: https://docs.medusajs.com/resources/commerce-modules/user
x-associatedSchema:
$ref: "#/components/schemas/AdminInvite"
- name: Locales
description: >
A locale is a language that content is translated into for customers to view
in a storefront.
Medusa installs locales by default. These API routes allow admin users to retrieve
and view locales.
externalDocs:
description: Learn more about locales and translations.
url: https://docs.medusajs.com/resources/commerce-modules/translation/concepts
x-associatedSchema:
$ref: "#/components/schemas/AdminLocale"
- name: Notifications
description: >
A notification informs an admin user of store changes or status changes of
@@ -221,8 +233,8 @@ tags:
- name: Order Changes
description: >
An order change is a proposed change to an order, such as adding or
removing items, changing shipping methods, and more. They can be associated
with order edits, claims, or exchanges.
removing items, changing shipping methods, and more. They can be
associated with order edits, claims, or exchanges.
These API routes allow admin users to manage order changes.
externalDocs:
@@ -642,6 +654,18 @@ tags:
</Note>
x-associatedSchema:
$ref: "#/components/schemas/AdminTransactionGroup"
- name: Translations
description: >
A translation is a localized version of content in a specific locale. For
example, a product description in French.
These API routes allow admin users to manage translations for different
locales and resources.
externalDocs:
description: Learn more about the Translation Module.
url: https://docs.medusajs.com/resources/commerce-modules/translation
x-associatedSchema:
$ref: "#/components/schemas/AdminTranslation"
- name: Uploads
description: >
Use these API routes to upload files to your Medusa application using the
@@ -81,6 +81,18 @@ tags:
</Note>
x-associatedSchema:
$ref: "#/components/schemas/StoreGiftCard"
- name: Locales
description: >
A locale is a language that content is translated into for customers to view
in a storefront.
Medusa installs locales by default. These API routes allow you to retrieve
supported locales in the store.
externalDocs:
description: Learn more about locales and translations.
url: https://docs.medusajs.com/resources/commerce-modules/translation/concepts
x-associatedSchema:
$ref: "#/components/schemas/StoreLocale"
- name: Orders
description: |
Guest and registered customers can view orders they placed.
@@ -192,8 +204,9 @@ tags:
- name: Store Credit Accounts
x-associatedSchema:
description: >
A store credit account is a way for customers to manage their store credit balance.
Customers can use their store credit to pay for orders, and view their store credit balance.
A store credit account is a way for customers to manage their store
credit balance. Customers can use their store credit to pay for orders,
and view their store credit balance.
These API routes allow customers to view their store credit accounts.