Ng Add
Ng-add
Overview
Creates boilerplate translation files for the given languages, and adds Transloco configuration for the project's root module.
Command
ng add @jsverse/transloco
Options
Create the translation files along with the required configuration.
-
--langs
type
:string
default
:en, es
Provide the translation files loader.
-
--loader
type
:string
default
:Http
options
:Http
,Webpack
alias
:lo
Provide the configuration that is needed for a project using server side rendering.
-
--ssr
type
:boolean
,default
:false
Define the location of the translation files.
-
--path
type
:string
default
:assets/i18n/
alias
:p
Provide the name of the project where Transloco should be installed to.
-
--project
type
:string
default
:project root directory name
Provide the path to a root Module
and import TranslocoModule
along with the module's required configuration defined by previous flags.
-
--module
type
:string
default
:app