@angular/common#registerLocaleData TypeScript Examples

The following examples show how to use @angular/common#registerLocaleData. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: eda-kpi.component.ts    From EDA with GNU Affero General Public License v3.0 6 votes vote down vote up
ngOnInit() {
        registerLocaleData( es );
        try{
            if(this.inject.alertLimits.length > 0){
                this.inject.alertLimits.forEach(alert => {
                    const operand = alert.operand, warningColor = alert.color;
                    const value1 = this.inject.value, value2 = alert.value;
                    if(this.color !== this.defaultColor) this.defaultColor = this.color;
                    switch(operand){
                        case '<': this.color = value1 < value2  ?  warningColor  : this.defaultColor; break;
                        case '=': this.color = value1 === value2 ?  warningColor : this.defaultColor; break;
                        case '>': this.color = value1 > value2   ?  warningColor : this.defaultColor; break;
                        default : this.color = this.defaultColor;
                    }
                });
            }
        }catch(e){
            console.log('No alert limits defined (alertLimits)');
            console.log(e);
        }
    }
Example #2
Source File: core.module.ts    From ng-ant-admin with MIT License 5 votes vote down vote up
registerLocaleData(zh);
Example #3
Source File: app.module.ts    From tuxedo-control-center with GNU General Public License v3.0 5 votes vote down vote up
registerLocaleData(localeDe, 'de', localeDeExtra);
Example #4
Source File: app.module.ts    From nodejs-angular-typescript-boilerplate with Apache License 2.0 5 votes vote down vote up
registerLocaleData(en);
Example #5
Source File: app.module.ts    From covid19-people-counter-system with MIT License 5 votes vote down vote up
registerLocaleData(localeITCH);
Example #6
Source File: app.module.ts    From open-genes-frontend with Mozilla Public License 2.0 5 votes vote down vote up
registerLocaleData(localeZh, 'zh');
Example #7
Source File: app.module.ts    From open-genes-frontend with Mozilla Public License 2.0 5 votes vote down vote up
registerLocaleData(localeEn, 'en');
Example #8
Source File: app.module.ts    From open-genes-frontend with Mozilla Public License 2.0 5 votes vote down vote up
registerLocaleData(localeRu, 'ru');
Example #9
Source File: app.module.ts    From onchat-web with Apache License 2.0 5 votes vote down vote up
registerLocaleData(localeZhHans, 'zh-Hans', localeExtraZhHans);
Example #10
Source File: eda-table.component.ts    From EDA with GNU Affero General Public License v3.0 5 votes vote down vote up
constructor(private elementRef: ElementRef, private styleService: StyleService) {
        registerLocaleData(es);
        /** Definim les caracteristiques del gràfic dintre de la taula.......................... */
        this.chartOptions = EdaColumnChartOptions;
    }
Example #11
Source File: app.module.ts    From xBull-Wallet with GNU Affero General Public License v3.0 5 votes vote down vote up
registerLocaleData(en);
Example #12
Source File: app.module.ts    From employee-crud-api with MIT License 5 votes vote down vote up
registerLocaleData(ptBr, 'pt-BR');
Example #13
Source File: app.module.ts    From EXOS-Core with MIT License 5 votes vote down vote up
registerLocaleData(localezIT);
Example #14
Source File: app.module.ts    From EXOS-Core with MIT License 5 votes vote down vote up
registerLocaleData(localezFR);
Example #15
Source File: app.module.ts    From EXOS-Core with MIT License 5 votes vote down vote up
registerLocaleData(localeES);
Example #16
Source File: app.module.ts    From EXOS-Core with MIT License 5 votes vote down vote up
registerLocaleData(localeEN);
Example #17
Source File: core.module.ts    From budget-angular with GNU General Public License v3.0 5 votes vote down vote up
registerLocaleData(localePl);
Example #18
Source File: fire-admin.module.ts    From FireAdmin with MIT License 5 votes vote down vote up
registerLocaleData(localeAr);
Example #19
Source File: fire-admin.module.ts    From FireAdmin with MIT License 5 votes vote down vote up
registerLocaleData(localeFr);