chore: TSDocs for Translation Module (#14280)

* tsdocs for translation module

* fixes
This commit is contained in:
Shahed Nasser
2025-12-16 13:30:26 +02:00
committed by GitHub
parent 7b0556dd85
commit 88a3cf7172
36 changed files with 875 additions and 111 deletions
@@ -1,8 +1,17 @@
import { model } from "@medusajs/framework/utils"
import Store from "./store"
/**
* @since 2.12.3
*/
const StoreLocale = model.define("StoreLocale", {
id: model.id({ prefix: "stloc" }).primaryKey(),
/**
* The BCP 47 language tag code of the locale.
*
* @example
* "en-US"
*/
locale_code: model.text().searchable(),
store: model
.belongsTo(() => Store, {
@@ -13,6 +13,11 @@ const Store = model
supported_currencies: model.hasMany(() => StoreCurrency, {
mappedBy: "store",
}),
/**
* The supported locales of the store.
*
* @since 2.12.3
*/
supported_locales: model.hasMany(() => StoreLocale, {
mappedBy: "store",
}),