chore: TSDocs for Translation Module (#14280)
* tsdocs for translation module * fixes
This commit is contained in:
@@ -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",
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user