ngx-translate / core

The internationalization (i18n) library for Angular
MIT License
4.53k stars 579 forks source link

please provide schematic #1247

Open damingerdai opened 4 years ago

damingerdai commented 4 years ago

Current behavior

if we want to use ngx-translate, we need run

npm install @ngx-translate/core --save

and then import TranslateModule in AppModule.

Expected behavior

by schematic if we want to use ngx-translate, we just run

ng add @ngx-translate/core

and then TranslateModule has imported into AppModule.

What is the motivation / use case for changing the behavior?

Copy from Angular Website

A schematic is a template-based code generator that supports complex logic. It is a set of instructions for transforming a software project by generating or modifying code. Schematics are packaged into collections and installed with npm.

i hope that this makes it more convenient to add i18n support to our angular application.

How do you think that we should implement this?

this is the doc

mburger81 commented 4 years ago

love it