1.0.2 • Published 1 year ago

@0nza1101/ngx-translate-router-scully-plugin v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@0nza1101/ngx-translate-router-scully-plugin

npm version

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'
  }
});