Skip to content

Commit

Permalink
Enable i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-wong committed Oct 29, 2024
1 parent c09db7d commit d6232ee
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@ const config = {
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
// i18n: {
// defaultLocale: 'en-us',
// locales: ['en-us', 'ja-jp'],
// localeConfigs: {
// 'en-us': {
// label: 'English',
// direction: 'ltr',
// htmlLang: 'en-US',
// calendar: 'gregory',
// path: 'versioned_docs/en-us',
// },
// 'ja-jp': {
// label: '日本語',
// direction: 'ltr',
// htmlLang: 'ja-JP',
// calendar: 'gregory',
// path: 'versioned_docs/ja-jp',
// },
// },
// },
i18n: {
defaultLocale: 'en-us',
locales: ['en-us', 'ja-jp'],
localeConfigs: {
'en-us': {
label: 'English',
direction: 'ltr',
htmlLang: 'en-US',
calendar: 'gregory',
path: 'versioned_docs/en-us',
},
'ja-jp': {
label: '日本語',
direction: 'ltr',
htmlLang: 'ja-JP',
calendar: 'gregory',
path: 'versioned_docs/ja-jp',
},
},
},

presets: [
[
Expand Down

0 comments on commit d6232ee

Please sign in to comment.