Skip to content

Commit 68f8b1a

Browse files
committed
update copy
1 parent ff5a336 commit 68f8b1a

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

settings/global.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ locale. We currently support localization in English, Chinese, Spanish, French,
308308
Japanese, and Portuguese.
309309

310310
<Info>
311-
Localization applies to the UI and fixed assets in the docs, such as "was this
312-
page helpful".
311+
Localization auto-translates the UI and fixed assets in the docs, such as "Was
312+
this page helpful?". You must translate the content of the pages yourself.
313313
</Info>
314314

315315
For more information, please refer to our

settings/versioning.mdx

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: 'Versioning & Localization'
3-
description: 'Build separate versions or localizations'
4-
icon: 'square-chevron-down'
2+
title: "Versioning & Localization"
3+
description: "Build separate versions or localizations"
4+
icon: "square-chevron-down"
55
---
66

77
Mintlify supports versioning or localization. You can use one or the other, not both.
@@ -49,14 +49,17 @@ You can also specify the version of a single page in the page metadata. Versions
4949

5050
```yaml Pages (quickstart.mdx)
5151
---
52-
title: 'Quickstart'
53-
version: 'v2'
52+
title: "Quickstart"
53+
version: "v2"
5454
---
5555
```
56+
5657
</CodeGroup>
5758

5859
<Warning>
59-
While it is possible to nest versioned groups within versioned groups, it is not recommended. If you do take this approach, the more deeply-nested version takes precedence.
60+
While it is possible to nest versioned groups within versioned groups, it is
61+
not recommended. If you do take this approach, the more deeply-nested version
62+
takes precedence.
6063
</Warning>
6164

6265
#### Versioning Tabs and Anchors
@@ -104,14 +107,18 @@ In `mint.json`, simply add `version` to your tab or anchor. Tabs and anchors wit
104107
},
105108
],
106109
```
110+
107111
</CodeGroup>
108112

109113
#### Sharing Between Versions
110114

111115
Not _all_ content has to be hidden though! Any content without a specified version appears in every version so you don't have to duplicate content!
112116

113117
<Tip>
114-
When using localization with versioning, each version can have its own set of translations. This means you can have different language versions for different API versions, giving you full flexibility in managing both versioned and localized content.
118+
When using localization with versioning, each version can have its own set of
119+
translations. This means you can have different language versions for
120+
different API versions, giving you full flexibility in managing both versioned
121+
and localized content.
115122
</Tip>
116123

117124
### Troubleshooting
@@ -123,6 +130,7 @@ Common errors and how to fix them
123130
You likely nested a version inside of another. For example, your group had version "v1" but your page had version "v2".
124131

125132
We do not recommend nesting versions inside of each other because it's hard to maintain your docs later.
133+
126134
</Accordion>
127135

128136
<Accordion title="Missing Pages" icon="circle-exclamation">
@@ -136,13 +144,11 @@ Common errors and how to fix them
136144

137145
### Setup
138146

139-
`"versions"` in your `mint.json` can be leveraged to create different language versions. The first localization from the array serves as the default localization.
147+
`"versions"` in your `mint.json` can be leveraged to create different language versions by adding a `locale` value to the version. The first localization from the array serves as the default localization.
140148

141-
We currently support localization in English (`en`), Chinese, Spanish (`es`), French (`fr`), Japanese, and Portuguese.
149+
We currently support localization in English (`en`), Chinese (`cn`), Spanish (`es`), French (`fr`), Japanese (`jp`), Portuguese (`pt`), and German (`de`).
142150

143-
Set your localization in your `mint.json` file like this:
144-
145-
```json
151+
```json mint.json example
146152
"versions": [
147153
{
148154
"name": "English",
@@ -160,8 +166,8 @@ Set your localization in your `mint.json` file like this:
160166
```
161167

162168
<Tip>
163-
The versions dropdown will show your localizations in the order you include them in
164-
`mint.json`.
169+
The versions dropdown will show your localizations in the order you include
170+
them in `mint.json`.
165171
</Tip>
166172

167-
Once setup, the rest of localization is handled by the versioning setup described above.
173+
Once setup, the rest of localization is handled by the versioning setup described above.

0 commit comments

Comments
 (0)