add i18n support

This commit is contained in:
kkzzhizhou 2021-11-21 22:13:19 +08:00
parent e45182547f
commit 1b468b8454
16 changed files with 72 additions and 16 deletions

View file

@ -6,7 +6,7 @@
"scripts": {
"dev": "rollup --config rollup.config.js -w",
"build": "rollup --config rollup.config.js --environment BUILD:production",
"dev2": "obsidian-plugin dev src/main.ts"
"test": "obsidian-plugin dev src/main.ts"
},
"keywords": [],
"author": "Leonard and Ran",
@ -29,11 +29,14 @@
"typescript": "^4.2.4"
},
"dependencies": {
"i18next": "^21.5.2",
"i18next-browser-languagedetector": "^6.1.2",
"node": "^16.10.0",
"node-fetch": "^3.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-emoji-render": "^1.2.4",
"react-i18next": "^11.14.2",
"react-markdown": "^7.1.0",
"react-tabs": "^3.2.2"
}