Skip to content

Commit 5db8ca5

Browse files
tupuichadoh
andauthored
Add i18n infrastructure (#247)
* Add i18 infra * ES support Co-authored-by: Chad Ostrowski <221614+chadoh@users.noreply.github.com>
1 parent 9c73554 commit 5db8ca5

21 files changed

Lines changed: 3508 additions & 472 deletions

File tree

website/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@
1818
npm-debug.log*
1919
yarn-debug.log*
2020
yarn-error.log*
21+
22+
# Package manager lock files
23+
bun.lock

website/docusaurus.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const config: Config = {
3434
// may want to replace "en" with "zh-Hans".
3535
i18n: {
3636
defaultLocale: 'en',
37-
locales: ['en'],
37+
locales: ['en', 'es'],
3838
},
3939

4040
presets: [
@@ -46,6 +46,7 @@ const config: Config = {
4646
// Remove this to remove the "edit this page" links.
4747
editUrl:
4848
'https://github.com/theahaco/scaffold-stellar/tree/main/docs/docs',
49+
editLocalizedFiles: true,
4950
},
5051
blog: {
5152
showReadingTime: true,
@@ -104,6 +105,10 @@ const config: Config = {
104105
label: 'Documentation',
105106
},
106107
{to: '/blog', label: 'Blog', position: 'left'},
108+
{
109+
type: 'localeDropdown',
110+
position: 'right',
111+
},
107112
{
108113
href: 'https://github.com/theahaco/scaffold-stellar',
109114
label: 'GitHub',

0 commit comments

Comments
 (0)