Socket
Socket
Sign inDemoInstall

angular-l10n

Package Overview
Dependencies
9
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 14.0.0 to 15.0.0

2

lib/directives/l10n-date.directive.d.ts

@@ -13,3 +13,3 @@ import { L10nDateTimeFormatOptions } from '../models/types';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nDateDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nDateDirective, "[l10nDate]", never, { "l10nDate": "l10nDate"; "options": "options"; "timezone": "timezone"; }, {}, never, never, false>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nDateDirective, "[l10nDate]", never, { "l10nDate": "l10nDate"; "options": "options"; "timezone": "timezone"; }, {}, never, never, true, never>;
}

@@ -6,8 +6,8 @@ import { L10nDirective } from '../models/l10n-directive';

protected intl: L10nIntlService;
set l10nDisplayNames(options: any | '');
options?: any;
set l10nDisplayNames(options: Intl.DisplayNamesOptions | '');
options: Intl.DisplayNamesOptions;
constructor(intl: L10nIntlService);
protected getValue(text: string): string;
static ɵfac: i0.ɵɵFactoryDeclaration<L10nDisplayNamesDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nDisplayNamesDirective, "[l10nDisplayNames]", never, { "l10nDisplayNames": "l10nDisplayNames"; "options": "options"; }, {}, never, never, false>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nDisplayNamesDirective, "[l10nDisplayNames]", never, { "l10nDisplayNames": "l10nDisplayNames"; "options": "options"; }, {}, never, never, true, never>;
}

@@ -15,3 +15,3 @@ import { L10nLocale, L10nNumberFormatOptions } from '../models/types';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nNumberDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nNumberDirective, "[l10nNumber]", never, { "l10nNumber": "l10nNumber"; "options": "options"; "currency": "currency"; "convert": "convert"; "convertParams": "convertParams"; }, {}, never, never, false>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nNumberDirective, "[l10nNumber]", never, { "l10nNumber": "l10nNumber"; "options": "options"; "currency": "currency"; "convert": "convert"; "convertParams": "convertParams"; }, {}, never, never, true, never>;
}

@@ -12,3 +12,3 @@ import { L10nDirective } from '../models/l10n-directive';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nPluralDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nPluralDirective, "[l10nPlural]", never, { "l10nPlural": "l10nPlural"; "prefix": "prefix"; "options": "options"; }, {}, never, never, false>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nPluralDirective, "[l10nPlural]", never, { "l10nPlural": "l10nPlural"; "prefix": "prefix"; "options": "options"; }, {}, never, never, true, never>;
}

@@ -12,3 +12,3 @@ import { L10nDirective } from '../models/l10n-directive';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nTimeAgoDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nTimeAgoDirective, "[l10nTimeAgo]", never, { "l10nTimeAgo": "l10nTimeAgo"; "unit": "unit"; "options": "options"; }, {}, never, never, false>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nTimeAgoDirective, "[l10nTimeAgo]", never, { "l10nTimeAgo": "l10nTimeAgo"; "unit": "unit"; "options": "options"; }, {}, never, never, true, never>;
}

@@ -9,3 +9,3 @@ import { L10nDirective } from '../models/l10n-directive';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nTranslateDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nTranslateDirective, "[l10nTranslate],[translate]", never, { "l10nTranslate": "l10nTranslate"; "translate": "translate"; "params": "params"; }, {}, never, never, false>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nTranslateDirective, "[l10nTranslate],[translate]", never, { "l10nTranslate": "l10nTranslate"; "translate": "translate"; "params": "params"; }, {}, never, never, true, never>;
}

@@ -29,3 +29,3 @@ import { OnInit, OnChanges } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nValidateDateDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nValidateDateDirective, "[l10nValidateDate][ngModel],[l10nValidateDate][formControl],[l10nValidateDate][formControlName]", never, { "l10nValidateDate": "l10nValidateDate"; "options": "options"; "minDate": "minDate"; "maxDate": "maxDate"; "language": "language"; }, {}, never, never, false>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nValidateDateDirective, "[l10nValidateDate][ngModel],[l10nValidateDate][formControl],[l10nValidateDate][formControlName]", never, { "l10nValidateDate": "l10nValidateDate"; "options": "options"; "minDate": "minDate"; "maxDate": "maxDate"; "language": "language"; }, {}, never, never, true, never>;
}

@@ -29,3 +29,3 @@ import { OnInit, OnChanges } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nValidateNumberDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nValidateNumberDirective, "[l10nValidateNumber][ngModel],[l10nValidateNumber][formControl],[l10nValidateNumber][formControlName]", never, { "l10nValidateNumber": "l10nValidateNumber"; "options": "options"; "minValue": "minValue"; "maxValue": "maxValue"; "language": "language"; }, {}, never, never, false>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nValidateNumberDirective, "[l10nValidateNumber][ngModel],[l10nValidateNumber][formControl],[l10nValidateNumber][formControlName]", never, { "l10nValidateNumber": "l10nValidateNumber"; "options": "options"; "minValue": "minValue"; "maxValue": "maxValue"; "language": "language"; }, {}, never, never, true, never>;
}

@@ -35,3 +35,3 @@ import { AfterViewInit, OnChanges, OnDestroy, ElementRef, Renderer2 } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nDirective, never, never, { "value": "value"; "innerHTML": "innerHTML"; "language": "language"; }, {}, never, never, false>;
static ɵdir: i0.ɵɵDirectiveDeclaration<L10nDirective, never, never, { "value": "value"; "innerHTML": "innerHTML"; "language": "language"; }, {}, never, never, false, never>;
}

@@ -14,4 +14,4 @@ import * as i0 from "@angular/core";

static ɵfac: i0.ɵɵFactoryDeclaration<L10nIntlModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<L10nIntlModule, [typeof i1.L10nDatePipe, typeof i2.L10nNumberPipe, typeof i3.L10nTimeAgoPipe, typeof i4.L10nPluralPipe, typeof i5.L10nDisplayNamesPipe, typeof i1.L10nDateAsyncPipe, typeof i2.L10nNumberAsyncPipe, typeof i3.L10nTimeAgoAsyncPipe, typeof i4.L10nPluralAsyncPipe, typeof i5.L10nDisplayNamesAsyncPipe, typeof i6.L10nDateDirective, typeof i7.L10nNumberDirective, typeof i8.L10nTimeAgoDirective, typeof i9.L10nPluralDirective, typeof i10.L10nDisplayNamesDirective], never, [typeof i1.L10nDatePipe, typeof i2.L10nNumberPipe, typeof i3.L10nTimeAgoPipe, typeof i4.L10nPluralPipe, typeof i5.L10nDisplayNamesPipe, typeof i1.L10nDateAsyncPipe, typeof i2.L10nNumberAsyncPipe, typeof i3.L10nTimeAgoAsyncPipe, typeof i4.L10nPluralAsyncPipe, typeof i5.L10nDisplayNamesAsyncPipe, typeof i6.L10nDateDirective, typeof i7.L10nNumberDirective, typeof i8.L10nTimeAgoDirective, typeof i9.L10nPluralDirective, typeof i10.L10nDisplayNamesDirective]>;
static ɵmod: i0.ɵɵNgModuleDeclaration<L10nIntlModule, never, [typeof i1.L10nDatePipe, typeof i2.L10nNumberPipe, typeof i3.L10nTimeAgoPipe, typeof i4.L10nPluralPipe, typeof i5.L10nDisplayNamesPipe, typeof i1.L10nDateAsyncPipe, typeof i2.L10nNumberAsyncPipe, typeof i3.L10nTimeAgoAsyncPipe, typeof i4.L10nPluralAsyncPipe, typeof i5.L10nDisplayNamesAsyncPipe, typeof i6.L10nDateDirective, typeof i7.L10nNumberDirective, typeof i8.L10nTimeAgoDirective, typeof i9.L10nPluralDirective, typeof i10.L10nDisplayNamesDirective], [typeof i1.L10nDatePipe, typeof i2.L10nNumberPipe, typeof i3.L10nTimeAgoPipe, typeof i4.L10nPluralPipe, typeof i5.L10nDisplayNamesPipe, typeof i1.L10nDateAsyncPipe, typeof i2.L10nNumberAsyncPipe, typeof i3.L10nTimeAgoAsyncPipe, typeof i4.L10nPluralAsyncPipe, typeof i5.L10nDisplayNamesAsyncPipe, typeof i6.L10nDateDirective, typeof i7.L10nNumberDirective, typeof i8.L10nTimeAgoDirective, typeof i9.L10nPluralDirective, typeof i10.L10nDisplayNamesDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<L10nIntlModule>;
}

@@ -11,4 +11,4 @@ import { ModuleWithProviders } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nTranslationModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<L10nTranslationModule, [typeof i1.L10nTranslatePipe, typeof i1.L10nTranslateAsyncPipe, typeof i2.L10nTranslateDirective], never, [typeof i1.L10nTranslatePipe, typeof i1.L10nTranslateAsyncPipe, typeof i2.L10nTranslateDirective]>;
static ɵmod: i0.ɵɵNgModuleDeclaration<L10nTranslationModule, never, [typeof i1.L10nTranslatePipe, typeof i1.L10nTranslateAsyncPipe, typeof i2.L10nTranslateDirective], [typeof i1.L10nTranslatePipe, typeof i1.L10nTranslateAsyncPipe, typeof i2.L10nTranslateDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<L10nTranslationModule>;
}

@@ -9,4 +9,4 @@ import { ModuleWithProviders } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nValidationModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<L10nValidationModule, [typeof i1.L10nValidateNumberDirective, typeof i2.L10nValidateDateDirective], never, [typeof i1.L10nValidateNumberDirective, typeof i2.L10nValidateDateDirective]>;
static ɵmod: i0.ɵɵNgModuleDeclaration<L10nValidationModule, never, [typeof i1.L10nValidateNumberDirective, typeof i2.L10nValidateDateDirective], [typeof i1.L10nValidateNumberDirective, typeof i2.L10nValidateDateDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<L10nValidationModule>;
}

@@ -11,3 +11,3 @@ import { PipeTransform } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nDatePipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nDatePipe, "l10nDate", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nDatePipe, "l10nDate", true>;
}

@@ -19,3 +19,3 @@ export declare class L10nDateAsyncPipe extends L10nAsyncPipe implements PipeTransform {

static ɵfac: i0.ɵɵFactoryDeclaration<L10nDateAsyncPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nDateAsyncPipe, "l10nDateAsync", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nDateAsyncPipe, "l10nDateAsync", true>;
}

@@ -8,5 +8,5 @@ import { PipeTransform } from '@angular/core';

constructor(intl: L10nIntlService);
transform(value: any, language: string, options?: any): string | null;
transform(value: any, language: string, options: Intl.DisplayNamesOptions): string | null;
static ɵfac: i0.ɵɵFactoryDeclaration<L10nDisplayNamesPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nDisplayNamesPipe, "l10nDisplayNames", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nDisplayNamesPipe, "l10nDisplayNames", true>;
}

@@ -16,5 +16,5 @@ export declare class L10nDisplayNamesAsyncPipe extends L10nAsyncPipe implements PipeTransform {

constructor(intl: L10nIntlService);
transform(value: any, options?: any, language?: string): string | null;
transform(value: any, options: Intl.DisplayNamesOptions, language?: string): string | null;
static ɵfac: i0.ɵɵFactoryDeclaration<L10nDisplayNamesAsyncPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nDisplayNamesAsyncPipe, "l10nDisplayNamesAsync", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nDisplayNamesAsyncPipe, "l10nDisplayNamesAsync", true>;
}

@@ -11,3 +11,3 @@ import { PipeTransform } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nNumberPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nNumberPipe, "l10nNumber", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nNumberPipe, "l10nNumber", true>;
}

@@ -19,3 +19,3 @@ export declare class L10nNumberAsyncPipe extends L10nAsyncPipe implements PipeTransform {

static ɵfac: i0.ɵɵFactoryDeclaration<L10nNumberAsyncPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nNumberAsyncPipe, "l10nNumberAsync", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nNumberAsyncPipe, "l10nNumberAsync", true>;
}

@@ -10,3 +10,3 @@ import { PipeTransform } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nPluralPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nPluralPipe, "l10nPlural", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nPluralPipe, "l10nPlural", true>;
}

@@ -18,3 +18,3 @@ export declare class L10nPluralAsyncPipe extends L10nAsyncPipe implements PipeTransform {

static ɵfac: i0.ɵɵFactoryDeclaration<L10nPluralAsyncPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nPluralAsyncPipe, "l10nPluralAsync", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nPluralAsyncPipe, "l10nPluralAsync", true>;
}

@@ -10,3 +10,3 @@ import { PipeTransform } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nTimeAgoPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nTimeAgoPipe, "l10nTimeAgo", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nTimeAgoPipe, "l10nTimeAgo", true>;
}

@@ -18,3 +18,3 @@ export declare class L10nTimeAgoAsyncPipe extends L10nAsyncPipe implements PipeTransform {

static ɵfac: i0.ɵɵFactoryDeclaration<L10nTimeAgoAsyncPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nTimeAgoAsyncPipe, "l10nTimeAgoAsync", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nTimeAgoAsyncPipe, "l10nTimeAgoAsync", true>;
}

@@ -10,3 +10,3 @@ import { PipeTransform } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<L10nTranslatePipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nTranslatePipe, "translate", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nTranslatePipe, "translate", true>;
}

@@ -16,3 +16,3 @@ export declare class L10nTranslateAsyncPipe extends L10nAsyncPipe implements PipeTransform {

static ɵfac: i0.ɵɵFactoryDeclaration<L10nTranslateAsyncPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nTranslateAsyncPipe, "translateAsync", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nTranslateAsyncPipe, "translateAsync", true>;
}

@@ -55,3 +55,3 @@ import { L10nLocale, L10nDateTimeFormatOptions, L10nNumberFormatOptions } from '../models/types';

*/
displayNames(code: string, options?: any, language?: string): string;
displayNames(code: string, options: Intl.DisplayNamesOptions, language?: string): string;
getCurrencySymbol(locale?: L10nLocale): string | undefined;

@@ -75,5 +75,5 @@ /**

*/
list(list: string[], options?: any, language?: string): string;
list(list: string[], options?: Intl.ListFormatOptions, language?: string): string;
static ɵfac: i0.ɵɵFactoryDeclaration<L10nIntlService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<L10nIntlService>;
}
{
"name": "angular-l10n",
"version": "14.0.0",
"version": "15.0.0",
"author": "Roberto Simonetti",

@@ -26,6 +26,6 @@ "description": "An Angular library to translate texts, dates and numbers",

"peerDependencies": {
"@angular/core": ">= 14.0.0",
"@angular/forms": ">= 14.0.0",
"@angular/router": ">= 14.0.0",
"@angular/common": ">= 14.0.0"
"@angular/core": ">= 15.0.0",
"@angular/forms": ">= 15.0.0",
"@angular/router": ">= 15.0.0",
"@angular/common": ">= 15.0.0"
},

@@ -32,0 +32,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc