-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webstorm documentation displays in chinese #351
Comments
If you have installed the mdui WebStorm extension, please uninstall it. |
I did not have webstorm extension installed. I installed it and now
documentation is displaying in english so this solves the problem. Thank
you.
…On Mon, Sep 16, 2024 at 4:49 AM zdhxiong ***@***.***> wrote:
If you have installed the mdui WebStorm extension, please uninstall it.
If the documentation is still displayed in Chinese, please provide your
package.json file for troubleshooting.
—
Reply to this email directly, view it on GitHub
<#351 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABG65RJ2S5WIYCU6TJN5Y3TZW2LS5AVCNFSM6AAAAABOIOX7ZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJSGMZTOMRRGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Actually, it's working for some things but not others. Here is my package.json {
"name": "iai-frontend",
"private": true,
"version": "0.2.0",
"type": "module",
"web-types": [
"./node_modules/mdui/web-types.en.json"
],
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
"@mdui/icons": "^1.0.2",
"mdui": "^2.1.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.2"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^9.9.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"globals": "^15.9.0",
"typescript": "^5.5.3",
"typescript-eslint": "^8.0.1",
"vite": "^5.4.1"
}
} |
You are using it in React, and you need to set it up according to the documentation for integrating with React. |
I followed these instructions but the documentation is displayed in chinese.
WebStorm
For npm-installed mdui
To enable WebStorm IDE support for mdui installed via npm:
Add the following code to the root of your project's package.json file:
web-types: ["./node_modules/mdui/web-types.en.json"]
If package.json already has a web-types property, add ./node_modules/mdui/web-types.en.json to the web-types array. Restart WebStorm after these changes.
The text was updated successfully, but these errors were encountered: