|
1
|
--- |
|
2
|
sidebar_position: 2 |
|
3
|
sidebar_label: "Manage Translations" |
|
4
|
tags: |
|
5
|
- user guide |
|
6
|
- translation |
|
7
|
products: |
|
8
|
- translation |
|
9
|
--- |
|
10
|
|
|
11
|
import { BarsArrowDown, Collapse } from "@medusajs/icons" |
|
12
|
import { Prerequisites, InlineIcon } from "docs-ui" |
|
13
|
|
|
14
|
export const metadata = { |
|
15
|
title: `Manage Translations in Medusa Admin`, |
|
16
|
} |
|
17
|
|
|
18
|
# {metadata.title} |
|
19
|
|
|
20
|
In this guide, you’ll learn how to manage translations of resources like products in the Medusa Admin. |
|
21
|
|
|
22
|
<Note> |
|
23
|
|
|
24
|
Translations are available from [Medusa v2.12.3](https://github.com/medusajs/medusa/releases/tag/v2.12.3). If you don't see the locale settings in your Medusa Admin, request your technical team to [upgrade your Medusa application](!docs!/learn/update). |
|
25
|
|
|
26
|
</Note> |
|
27
|
|
|
28
|
## Translations Overview |
|
29
|
|
|
30
|
Medusa allows you to translate various resources in your store, such as product titles and descriptions, into multiple locales (languages) supported by your store. |
|
31
|
|
|
32
|
<Note title="Tip"> |
|
33
|
|
|
34
|
You can set supported locales for your store in the [Store](../store/page.mdx#manage-store-locales) settings page. |
|
35
|
|
|
36
|
</Note> |
|
37
|
|
|
38
|
Then, in the storefront, customers can view content in their preferred language based on the available locales. |
|
39
|
|
|
40
|
### View and Manage Translations |
|
41
|
|
|
42
|
You can view and manage translations in the Medusa Admin dashboard by going to Settings → Translations. This page allows you to manage translations of core and custom resources in bulk. |
|
43
|
|
|
44
|
Alternatively, you can manage translations for individual resources directly from their respective pages (for example, from a product's detail page). |
|
45
|
|
|
46
|
 |
|
47
|
|
|
48
|
--- |
|
49
|
|
|
50
|
## Manage Translations in Bulk |
|
51
|
|
|
52
|
In the Translations settings page, you can view and manage translations in bulk for various core and custom resources in your store, including products and variants. |
|
53
|
|
|
54
|
<Note> |
|
55
|
|
|
56
|
Refer to the [Translation Module](!resources!/commerce-modules/translation#supported-module-translations) guide for a list of core resources that support translations out-of-the-box. |
|
57
|
|
|
58
|
</Note> |
|
59
|
|
|
60
|
For example, to manage product translations in bulk: |
|
61
|
|
|
62
|
1. Go to Settings → Translations. |
|
63
|
2. Click on the Edit button in the "Products" row. |
|
64
|
3. This will open a [bulk editor](../../tips/bulk-editor/page.mdx) where you can view and edit translations for product titles, descriptions, subtitles, and more in each [locale supported in your store](../store/page.mdx#manage-store-locales). |
|
65
|
- You can switch between locales using the Locales dropdown at the top of the bulk editor. |
|
66
|
- You can click the "Save Changes" button at any time to save your progress without closing the bulk editor. |
|
67
|
4. Once you're done editing, click the "Save and close" button to apply the changes. |
|
68
|
|
|
69
|
Customers will then see the translated content in the storefront based on their selected locale. |
|
70
|
|
|
71
|
--- |
|
72
|
|
|
73
|
### Manage Translatable Resources |
|
74
|
|
|
75
|
<Prerequisites |
|
76
|
items={[ |
|
77
|
{ |
|
78
|
text: "Medusa v2.13.0+", |
|
79
|
link: "https://github.com/medusajs/medusa/releases/tag/v2.13.0" |
|
80
|
}, |
|
81
|
{ |
|
82
|
text: "Translation Module Configured", |
|
83
|
link: "!resources!/commerce-modules/translation#configure-translation-module", |
|
84
|
}, |
|
85
|
{ |
|
86
|
text: "For custom resources: Enable translations for custom data models", |
|
87
|
link: "!resources!/commerce-modules/translation/custom-data-models", |
|
88
|
} |
|
89
|
]} |
|
90
|
/> |
|
91
|
|
|
92
|
Admin users can configure which resources are translatable in the Translations settings page. They can also configure which fields are translatable for each resource. |
|
93
|
|
|
94
|
To manage translatable resources and their fields: |
|
95
|
|
|
96
|
1. Go to Settings → Translations. |
|
97
|
2. Click on the Manage button at the top-end of the first section. |
|
98
|
3. In the side window that opens, you can: |
|
99
|
- Enable or disable translations for each resource, such as products. |
|
100
|
- For each resource, you can expand it to configure which fields are translatable. |
|
101
|
- To select all resources and their fields, click the "Select All" button at the top. |
|
102
|
- To view only selected resources, click the "Selected" button. You can toggle back to view all resources by clicking the "Full list" button. |
|
103
|
- You can toggle alphabetical sorting between ascending and descending order by clicking the <InlineIcon Icon={BarsArrowDown} alt="sort" /> button at the top. |
|
104
|
- You can collapse all expanded resources by clicking the <InlineIcon Icon={Collapse} alt="collapse" /> button at the top. |
|
105
|
4. Once you're done, click the "Save" button to apply the changes. |
|
106
|
|
|
107
|
 |
|
108
|
|
|
109
|
--- |
|
110
|
|
|
111
|
## View Translation Statistics |
|
112
|
|
|
113
|
Each resource row in the Translations settings page displays how many fields have been translated out of the total translatable fields for that resource. |
|
114
|
|
|
115
|
The "Translated fields" section also shows a general progress bar of how many fields have been translated across all resources and locales in your store. You can use this summary to track your overall translation progress. |
|
116
|
|
|
117
|
 |
|
118
|
|
|
119
|
There are two charts in this section: |
|
120
|
|
|
121
|
1. A progress bar showing the overall translation progress across all resources and locales. |
|
122
|
2. A bar chart showing the number of translated fields per locale. |
|
123
|
|
|
124
|
These charts help you visualize your translation efforts and identify which locales may need more attention. |