Skip to content

Commit 43448d8

Browse files
committed
Fixed localization page
1 parent 982dad7 commit 43448d8

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

settings/versioning.mdx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
title: "Versioning & Localization"
33
description: "Build separate versions or localizations"
44
icon: "square-chevron-down"
@@ -12,16 +12,20 @@ These guides will assume `v1` pages are in a folder named `v1`, `v2` pages are i
1212

1313
### Setup
1414

15-
Add `"versions": ["v2", "v1"]` to your `mint.json` file where `v1` and `v2` are the names of your versions. You can put any number of versions in this array. The first version from the array serves as the default version.
15+
Add `"versions": ["v2", "v1"]` to your `docs.json` file where `v1` and `v2` are the names of your versions. You can put any number of versions in this array. The first version from the array serves as the default version.
1616

1717
If you would like to specify a default version, you can do so like this:
1818
```json
1919
"global": {
2020
"versions": [
2121
{
22-
"version": "version-name",
22+
"version": "v1",
2323
"default": true,
24-
"href": "link-to-version"
24+
"href": "pathname-to-v1"
25+
},
26+
{
27+
"version": "v2",
28+
"href": "pathname-to-v2"
2529
}
2630
]
2731
}
@@ -172,7 +176,7 @@ Common errors and how to fix them
172176

173177
### Setup
174178

175-
`"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.
179+
`"languages"` in your `docs.json` can be leveraged to create different language versions by adding a `language` value to the version. The first language from the array serves as the default language.
176180

177181
We currently support localization in English (`en`), Chinese (`cn`), Spanish (`es`), French (`fr`), Japanese (`jp`), Portuguese (`pt`), Portuguese (Brazil) (`pt-BR`), and German (`de`).
178182

@@ -196,7 +200,7 @@ We currently support localization in English (`en`), Chinese (`cn`), Spanish (`e
196200
```
197201

198202
<Tip>
199-
The languages dropdown will show your localizations in the order you include
203+
The languages dropdown will show your languages in the order you include
200204
them in the `docs.json`.
201205
</Tip>
202206

0 commit comments

Comments
 (0)