Custom Pure Pipe in Angular2 with change detection push
<p>I am trying to implement a custom pipe in Angular 2 for the translation in our website. I made an impure pipe first but noticed that it is getting transformed for every mouseover and small events in dom. 
The other option was to implement a pure pipe but this required an input (language code) to be passed in so that change is detected .</p>

<p>I would like to continue with pure pipe and change the change detection strategy to OnPush. However is there any way to set the change detection strategy globally rather than specifying it in each component?</p>

<p>The other option is to inject the translation service which has the language code globally.Is there any option to inject a service globally like PLATFORM_PIPES or PLATFORM_DIRECTIVES?</p>