Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/uiwebkit/localize-angular
- Owner: uiwebkit
- License: mit
- Created: 2021-12-12T16:32:47.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-07T11:39:06.000Z (almost 3 years ago)
- Last Synced: 2024-11-07T22:13:06.522Z (2 months ago)
- Topics: angular, angular-cli, custom-elements, html, languages, localization, translate, uiwebkit, uni-localization, web, web-components, widget
- Language: HTML
- Homepage: https://uiwebkit.com/wgt/loc/2/
- Size: 268 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```
#### open and modify ./src/assets/json/lang-menu.json and translation files into ./src/assets/json/i18n/ folder