https://github.com/uiwebkit/localize-react
Uni Localization example for React
https://github.com/uiwebkit/localize-react
custom-elements html localization localize react reactjs translate translation uiwebkit uni-localization web web-components widget
Last synced: 9 months ago
JSON representation
Uni Localization example for React
- Host: GitHub
- URL: https://github.com/uiwebkit/localize-react
- Owner: uiwebkit
- License: mit
- Created: 2021-12-13T17:44:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-07T11:52:35.000Z (about 4 years ago)
- Last Synced: 2025-05-21T19:18:45.822Z (10 months ago)
- Topics: custom-elements, html, localization, localize, react, reactjs, translate, translation, uiwebkit, uni-localization, web, web-components, widget
- Language: JavaScript
- Homepage: https://uiwebkit.com/wgt/loc/2
- Size: 516 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Uni Localization example for React
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app)
Check out demo [here](https://uiwebkit.github.io/localize-react/)
Check out our docs [here](https://uiwebkit.com/wgt/loc/2)
### Add to index.html
```html
```
#### Place Uni Language Menu into the header of your web app. Specify the path to the language list JSON file (ex. lang-menu.json) or backend API endpoint
```html
```
#### Wrap your content with Uni Translate globally (for more convenience)
```html
```
#### or wrap your text content with Uni Translate locally (for better performance)
```html
localized content
```
#### localize partially
```html
text and (( partially localized ))
```
#### localize attributes
```html
```
#### open and modify ./public/lang-menu.json and translation files into ./public/i18n/ folder