How to use the @ngx-translate/core.TranslatePipe function in @ngx-translate/core

To help you get started, we’ve selected a few @ngx-translate/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xm-online / xm-webapp / src / app / shared / pipes / translate.pipe.ts View on Github external
public transform(value: Translate, ...args: any[]): string | any {
        if (typeof value === 'object') {
            return value[this.translate.currentLang];
        } else {
            return new ngxTranslate(this.translate, this.cdr).transform(value, ...args);
        }
    }
github xtreamsrl / ngx-validation-errors / src / app / app.module.ts View on Github external
  return (detector: ChangeDetectorRef) => new TranslatePipe(translateService, detector);
}