Skip to content
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

Open
TechnicalParadox opened this issue Sep 16, 2024 · 4 comments
Open

Webstorm documentation displays in chinese #351

TechnicalParadox opened this issue Sep 16, 2024 · 4 comments

Comments

@TechnicalParadox
Copy link

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.

@zdhxiong
Copy link
Owner

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.

@TechnicalParadox
Copy link
Author

TechnicalParadox commented Sep 16, 2024 via email

@TechnicalParadox
Copy link
Author

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"
  }
}

@zdhxiong
Copy link
Owner

You are using it in React, and you need to set it up according to the documentation for integrating with React.
https://www.mdui.org/en/docs/2/frameworks/react

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants