Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

doc: update doc for fe

haitao(lj)2f43967b800a
diff --git a/ui/README.md b/ui/README.md
index 42639ec5..f7fbb8aa 100644
--- a/ui/README.md
+++ b/ui/README.md
@@ -4,7 +4,7 @@
To learn more about the philosophy and goals of the project, visit [Answer](https://answer.dev).
-### πŸ“¦ Prerequisites
+## βš™οΈ Prerequisites
- [Node.js](https://nodejs.org/) `>=16.17`
- [pnpm](https://pnpm.io/) `>=7`
@@ -40,22 +40,78 @@ you can also manually visit it.
when cloning repo, and run `pnpm install` to init dependencies. you can use project commands below:
-- `pnpm run start` run Answer web locally.
-- `pnpm run build` build Answer for production
-- `pnpm run lint` lint and fix the code style
+- `pnpm start` run Answer web locally.
+- `pnpm build` build Answer for production
+- `pnpm lint` lint and fix the code style
+## 🌍 I18n(Multi-language)
+If you need to add or edit a language entry, just go to the `/i18n/en_US.yaml` file,
+all front-end language entries are placed under the `ui` field.
-## πŸ–₯ Environment Support
+If you would like to help us with the i18n translation, please visit [Answer@Crowdin](https://crowdin.com/translate/answer)
+
+## πŸ’‘ Project instructions
+
+```
+.
+β”œβ”€β”€ cmd
+β”œβ”€β”€ configs
+β”œβ”€β”€ docs
+β”œβ”€β”€ i18n
+ β”œβ”€β”€ en_US.yaml (basic language file)
+ β”œβ”€β”€ i18n.yaml (language list)
+β”œβ”€β”€ internal
+β”œβ”€β”€ ...
+└── ui (front-end project starts here)
+ β”œβ”€β”€ build (built results directory, usually without concern)
+ β”œβ”€β”€ public (html template for public)
+ β”œβ”€β”€ scripts (some scripting tools on front-end project)
+ β”œβ”€β”€ src (almost all front-end resources are here)
+ β”œβ”€β”€ assets (static resources)
+ β”œβ”€β”€ common (project information/data defined here)
+ β”œβ”€β”€ components (all components of the project)
+ β”œβ”€β”€ hooks (all hooks of the project)
+ β”œβ”€β”€ i18n (Initialize the front-end i18n)
+ β”œβ”€β”€ pages (all pages of the project)
+ β”œβ”€β”€ router (Project routing definition)
+ β”œβ”€β”€ services (all data api of the project)
+ β”œβ”€β”€ stores (all data stores of the project)
+ β”œβ”€β”€ utils (all utils of the project)
+```
+
+## 🀝 Contributing
+
+#### Fix Bug
+If you find a bug, please don't hesitate to [submit an issue](https://github.com/answerdev/answer/issues) to us.
+If you can fix it, please include a note with your issue submission.
+If it is a bug definitely, you can submit your PR after we confirm it, which will ensure you don't do anything useless.
+
+#### Code Review & Comment
+In our development, some codes are not logical we know. If you find it, please don't hesitate to submit PR to us.
+In the same way, some function has no comment. We would appreciate it if you could help us supplement it.
+
+#### Translation
+All our translations are placed in the i18n directory.
+
+1. If you find that the corresponding key in the language you are using does not have a translation, you can submit your translation.
+2. If you want to submit a new language translation, please add your language to the `i18n.yaml` file.
+
+#### Features or Plugin
+1. We developed the features for the plan based on the [roadmap](https://github.com/orgs/answerdev/projects/1). If you are suggestions for new functions, please confirm whether they have been planned.
+2. Plugins will be available in the future, so stay tuned.
+
+## πŸ“±Environment Support
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Safari |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| last 2 versions | last 2 versions | last 2 versions | last 2 versions |
-## 🧱 Build with
-
-- [React.js](https://reactjs.org/) - Our front end is a React.js app.
+## ⭐ Built with
+- [TypeScript](https://www.typescriptlang.org/) - strongly typed JavaScript
+- [React.js](https://reactjs.org/) - Our front end is a React.js app
+- [React Router](https://reactrouter.com/en/main) - Router library
- [Bootstrap](https://getbootstrap.com/) - UI library.
-- [React Bootstrap](https://react-bootstrap.github.io/) - UI Library(rebuilt for React.)
+- [React Bootstrap](https://react-bootstrap.github.io/) - UI Library(rebuilt for React)
- [axios](https://github.com/axios/axios) - Request library
- [SWR](https://swr.bootcss.com/) - Request library
- [react-i18next](https://react.i18next.com/) - International library