From c41b0d33806d0f6c968ca02d2716bbdbfca9718e Mon Sep 17 00:00:00 2001 From: "Li, Amazing Ang" Date: Wed, 3 May 2023 20:46:59 +0800 Subject: [PATCH] add i18n button --- README.md | 4 ++-- apps/doc/docusaurus.config.js | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5ace895..d9e206a 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,12 @@ A flexible online playground for Solidity smart contract, inspired by remix-IDE and react-live ### Demo -- Check demo website: https://solive.wtf +- Check demo website: https://demo.solive.wtf - build demo: [demo](./apps/demo) ### DOC -- Check doc website: https://solive-doc-git-dev-wtfacademy.vercel.app +- Check doc website: https://solive.wtf - build doc: [doc](./apps/doc) diff --git a/apps/doc/docusaurus.config.js b/apps/doc/docusaurus.config.js index 8c29b0a..c7fa1a2 100644 --- a/apps/doc/docusaurus.config.js +++ b/apps/doc/docusaurus.config.js @@ -54,7 +54,7 @@ const config = { // to replace "en" with "zh-Hans". i18n: { defaultLocale: "en", - locales: ["en"], + locales: ["en", `zh`], }, themes: ['solive-docusaurus-theme-code'], @@ -115,6 +115,9 @@ const config = { label: 'Playground', position: 'left', }, + { + type: 'localeDropdown', + }, ], }, footer: {