Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/uiwebkit/localize-angular

Uni Localization example for Angular
https://github.com/uiwebkit/localize-angular

angular angular-cli custom-elements html languages localization translate uiwebkit uni-localization web web-components widget

Last synced: 22 days ago
JSON representation

Uni Localization example for Angular

Awesome Lists containing this project

README

        

# Uni Localization example for Angular

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

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

### Add to your modules

```ts
@NgModule({
...,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
...
})
```

### 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 ./src/assets/json/lang-menu.json and translation files into ./src/assets/json/i18n/ folder