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

https://github.com/locize/transloco-example


https://github.com/locize/transloco-example

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# ngx-translate example with [locize](https://locize.com) integration

Uses [Transloco](https://ngneat.github.io/transloco).

The most important part regarding [locize](https://locize.com) is [here](https://github.com/locize/transloco-example/blob/main/src/app/app.module.ts).

This example is also using [locizer](https://github.com/locize/locizer) to optionally send the missing keys to [locize](https://locize.com), so they can directly be translated... analogous to [this example](https://dev.to/adrai/unleash-the-full-power-of-angular-i18next-4b7o#save-missing).

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).