@0nza1101/ngx-translate-router-scully-plugin
v1.0.2
Published
A Scully plugin to support ngx-translate-router
Downloads
14
Maintainers
Readme
@0nza1101/ngx-translate-router-scully-plugin
This Scully plugin allows you to use ngx-translate-router. This plugin works with the latest Scully and Angular version. It doesn't import @gilsdav/ngx-translate-router as a dependencie, that means it uses no Angular package to do the job.
Installation
$ npm install @0nza1101/ngx-translate-router-scully-plugin --save-dev
Usage
First, import the registerNgxTranslateRouter function into your Scully config file
import { registerNgxTranslateRouter } from '@0nza1101/ngx-translate-router-scully-plugin';
Now register the plugin by calling this function giving your different language files
registerNgxTranslateRouter({
langs: {
en: './src/assets/locales/en.json',
fr: './src/assets/locales/fr.json'
}
});