|
1
|
import { Prerequisites } from "docs-ui" |
|
2
|
|
|
3
|
export const metadata = { |
|
4
|
title: `Store Locales`, |
|
5
|
} |
|
6
|
|
|
7
|
# {metadata.title} |
|
8
|
|
|
9
|
In this guide, you'll learn about locales defined in the Store Module. |
|
10
|
|
|
11
|
<Prerequisites |
|
12
|
items={[ |
|
13
|
{ |
|
14
|
text: "Medusa v2.12.3 or later", |
|
15
|
link: "https://github.com/medusajs/medusa/releases/tag/v2.12.3", |
|
16
|
}, |
|
17
|
]} |
|
18
|
/> |
|
19
|
|
|
20
|
<Note> |
|
21
|
|
|
22
|
While the Store Module allows you to manage the locales for your store, the actual locale data and translations are managed by the [Translation Module](../../translation/page.mdx). |
|
23
|
|
|
24
|
</Note> |
|
25
|
|
|
26
|
## Supported Locales |
|
27
|
|
|
28
|
The Store Module has a [StoreLocale](/references/store/models/StoreLocale) data model that represents the locales supported by your store. It has a `locale_code` property that follows the [IETF BCP 47 standard](https://gist.github.com/typpo/b2b828a35e683b9bf8db91b5404f1bd1). For example, `en-US` represents American English, while `fr-FR` represents French (France). |
|
29
|
|
|
30
|
`StoreLocale` belongs to the [Store](/references/store/models/Store) data model, which has a `supported_locales` property that lists all the locales available in your store. |
|
31
|
|
|
32
|
For example, if your store supports English (United States) and French (France), you'll have two `StoreLocale` records with the locale codes `en-US` and `fr-FR`. |
|
33
|
|
|
34
|
 |