Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/i18n-pro/core-demo
Demo of i18n-pro/core
https://github.com/i18n-pro/core-demo
auto-translation automatic-translation demo i18n i18n-pro machine-translation translator
Last synced: 6 days ago
JSON representation
Demo of i18n-pro/core
- Host: GitHub
- URL: https://github.com/i18n-pro/core-demo
- Owner: i18n-pro
- Created: 2022-08-28T13:46:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-03T09:54:27.000Z (over 1 year ago)
- Last Synced: 2025-01-06T06:31:47.453Z (12 days ago)
- Topics: auto-translation, automatic-translation, demo, i18n, i18n-pro, machine-translation, translator
- Language: TypeScript
- Homepage:
- Size: 970 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Summary
This is a simple example of `i18n-pro` applied to `React` . As the current library is a pure `JavaScript` library, there are no tasks related to other frameworks or library logic, so the usage in other UI libraries (such as `Vue` ) is not different
# Special Instructions
If you want to experience the simulated server response normally, in the red part of the following figure, it is necessary to ensure that two services have been started normally![Sample image](https://s3.bmp.ovh/imgs/2023/06/01/9454bc713e431739.png)The two services are:
1. Front end page service (port: 5173), used to display examples
2. Backend interface service (port: 8080), used to receive and corresponding click button requestsIf it is currently opened through `CodeSandBox` , both services can start normally by default, and a list of opened services can be seen in this location![Sample image](https://s3.bmp.ovh/imgs/2023/06/01/4f1545b5d2dd01e9.png)
If opened through `StackBlitz` , by default only one terminal can start one service, but a new terminal can be created to start another service. The default startup is **Frontend page services (port: 5173)**
The operation to add a terminal is as follows:![Sample image](https://s3.bmp.ovh/imgs/2023/06/01/309bee8bb93b8ff9.png)Enter the following command on the new terminal to start **Backend interface service (port: 8080)**
```bash
npm run server
```
The effect is as follows:![Sample image](https://s3.bmp.ovh/imgs/2023/06/02/4e7d3f425b3e6ff0.png)