Skip to content

Commit aa56164

Browse files
committed
Enable i18n
1 parent c09db7d commit aa56164

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

docusaurus.config.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@ const config = {
2929
// Even if you don't use internationalization, you can use this field to set
3030
// useful metadata like html lang. For example, if your site is Chinese, you
3131
// may want to replace "en" with "zh-Hans".
32-
// i18n: {
33-
// defaultLocale: 'en-us',
34-
// locales: ['en-us', 'ja-jp'],
35-
// localeConfigs: {
36-
// 'en-us': {
37-
// label: 'English',
38-
// direction: 'ltr',
39-
// htmlLang: 'en-US',
40-
// calendar: 'gregory',
41-
// path: 'versioned_docs/en-us',
42-
// },
43-
// 'ja-jp': {
44-
// label: '日本語',
45-
// direction: 'ltr',
46-
// htmlLang: 'ja-JP',
47-
// calendar: 'gregory',
48-
// path: 'versioned_docs/ja-jp',
49-
// },
50-
// },
51-
// },
32+
i18n: {
33+
defaultLocale: 'en-us',
34+
locales: ['en-us', 'ja-jp'],
35+
localeConfigs: {
36+
'en-us': {
37+
label: 'English',
38+
direction: 'ltr',
39+
htmlLang: 'en-US',
40+
calendar: 'gregory',
41+
path: 'versioned_docs/en-us',
42+
},
43+
'ja-jp': {
44+
label: '日本語',
45+
direction: 'ltr',
46+
htmlLang: 'ja-JP',
47+
calendar: 'gregory',
48+
path: 'versioned_docs/ja-jp',
49+
},
50+
},
51+
},
5252

5353
presets: [
5454
[

0 commit comments

Comments
 (0)