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

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

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

link

```

#### open and modify ./public/lang-menu.json and translation files into ./public/i18n/ folder