Skip to content

Commit 3c0c983

Browse files
committed
feat: add sample code, auto language detection, and wait for code completion
1 parent ee3b65e commit 3c0c983

File tree

4 files changed

+335
-77
lines changed

4 files changed

+335
-77
lines changed

docusaurus.config.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,18 @@ const config = {
2424
// to replace "en" with "zh-Hans".
2525
i18n: {
2626
defaultLocale: 'en',
27-
locales: ['en'],
27+
locales: ['en', 'fr', 'ur'],
28+
localeConfigs: {
29+
en: {
30+
label: 'English',
31+
},
32+
fr: {
33+
label: 'Français',
34+
},
35+
ur: {
36+
label: 'Urdu',
37+
},
38+
},
2839
},
2940

3041
presets: [
@@ -75,6 +86,10 @@ const config = {
7586
label: 'GitHub',
7687
position: 'right',
7788
},
89+
{
90+
type: 'localeDropdown',
91+
position: 'left',
92+
},
7893
],
7994
},
8095
footer: {

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
"clsx": "^1.2.1",
2525
"prism-react-renderer": "^1.3.5",
2626
"react": "^17.0.2",
27-
"react-dom": "^17.0.2"
27+
"react-dom": "^17.0.2",
28+
"react-ipgeolocation": "^1.4.0",
29+
"react-loader-spinner": "^5.3.4"
2830
},
2931
"devDependencies": {
3032
"@docusaurus/module-type-aliases": "2.2.0"

0 commit comments

Comments
 (0)