You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44
Original file line number
Diff line number
Diff line change
@@ -76,3 +76,47 @@
76
76
- `learn` - All information to learn about Codex
77
77
- `networks` - Codex networks related information
78
78
- `developers` - Codex development process and guides
79
+
80
+
81
+
## Internationalization
82
+
83
+
We are using built-in [i18n features for Internationalization support](https://vitepress.dev/guide/i18n).
84
+
85
+
In order to add a new language version of the docs it is required
86
+
1. Create a folder with a name of the two letter language code - `ko`for Korean, please check [List of ISO 639 language codes](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes).
87
+
88
+
2. Copy and translate required pages. It make sense to use English pages as a source as it is the primary language. Pages are located inside the repository sub-folders
89
+
- *codex*
90
+
- *developers*
91
+
- *learn*
92
+
- *networks*
93
+
94
+
After translation, we will have a new folder with all sub-folders
95
+
```
96
+
ko
97
+
├── codex
98
+
├── developers
99
+
├── learn
100
+
└── networks
101
+
```
102
+
103
+
3. If you need to translate images, they are located inside a *public* folder. After translation, add a language suffix to the language specific file, for example *public/learn/architecture-`ko`.png*.
104
+
105
+
Then, update the docs to use a language specific image.
106
+
107
+
4. Add new language to the site config file - [*.vitepress/config.mts*](.vitepress/config.mts)
108
+
```json
109
+
// Korean
110
+
ko: {
111
+
label: '한국어',
112
+
lang: 'ko-KP',
113
+
link: '/ko',
114
+
themeConfig: {}
115
+
}
116
+
```
117
+
- `label` - Native language name from [List of ISO 639 language codes](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes)
0 commit comments