Ecosyste.ms: Awesome

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

https://github.com/uiwebkit/localize-vue-2x

Uni Localization example for Vue.js 2.x
https://github.com/uiwebkit/localize-vue-2x

custom-elements html localization translation uiwebkit uni-localization vue vuejs vuejs2 web web-components widget

Last synced: about 1 month ago
JSON representation

Uni Localization example for Vue.js 2.x

Lists

README

        

# Uni Localization example for Vue.js 2.x

Check out demo [here](https://uiwebkit.github.io/localize-vue-2x/)

Check out our docs [here](https://uiwebkit.com/wgt/loc/2)

### Add to main.js

```js
Vue.config.ignoredElements = [/uni-\w*/];
```

### 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