Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 requests

If 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)