How to use the @biesbjerg/ngx-translate-extract/dist/utils/utils._ function in @biesbjerg/ngx-translate-extract

To help you get started, we’ve selected a few @biesbjerg/ngx-translate-extract 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 openradiation / openradiation-mobile / src / app / components / history-item / history-item.component.ts View on Github external
@Input()
  canPublish: boolean;
  @Input()
  measureBeingSent: boolean | undefined;

  @Output()
  publishEvent: EventEmitter = new EventEmitter();
  @Output()
  deleteEvent = new EventEmitter();

  displaySeries: Measure[];
  deploy = false;
  measureType = MeasureType;
  measureSeriesMessageMapping = {
    '=1': _('HISTORY.MEASURE_SERIES.SINGULAR'),
    other: _('HISTORY.MEASURE_SERIES.PLURAL')
  };

  constructor() {}

  ngOnInit() {}

  DeploySeries(event: Event, measure: MeasureSeries) {
    event.stopPropagation();
    this.deploy = !this.deploy;
    this.displaySeries = measure.measures;
  }

  publish(event: Event) {
    event.stopPropagation();
    this.publishEvent.emit(this.measure);
  }
github openradiation / openradiation-mobile / src / app / components / history-item / history-item.component.ts View on Github external
measure: Measure | MeasureSeries;
  @Input()
  canPublish: boolean;
  @Input()
  measureBeingSent: boolean | undefined;

  @Output()
  publishEvent: EventEmitter = new EventEmitter();
  @Output()
  deleteEvent = new EventEmitter();

  displaySeries: Measure[];
  deploy = false;
  measureType = MeasureType;
  measureSeriesMessageMapping = {
    '=1': _('HISTORY.MEASURE_SERIES.SINGULAR'),
    other: _('HISTORY.MEASURE_SERIES.PLURAL')
  };

  constructor() {}

  ngOnInit() {}

  DeploySeries(event: Event, measure: MeasureSeries) {
    event.stopPropagation();
    this.deploy = !this.deploy;
    this.displaySeries = measure.measures;
  }

  publish(event: Event) {
    event.stopPropagation();
    this.publishEvent.emit(this.measure);
github CodeAndWeb / ngx-translate-demo / ngx-translate-demo / src / app / app.component.ts View on Github external
import {Component} from '@angular/core';
import {TranslateService} from '@ngx-translate/core';
import {_} from '@biesbjerg/ngx-translate-extract/dist/utils/utils';

import defaultLanguage from "./../assets/i18n/en.json";

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.scss']
})
export class AppComponent {

    fromCode = _('demo.text-in-code');

    constructor(private translate: TranslateService) {
        translate.setTranslation('en', defaultLanguage);
        translate.setDefaultLang('en');
    }

    useLanguage(language: string) {
        this.translate.use(language);
    }
}

@biesbjerg/ngx-translate-extract

Extract strings from projects using ngx-translate

MIT
Latest version published 4 years ago

Package Health Score

47 / 100
Full package analysis