diff --git a/projects/ngx-mat-errors/src/lib/error-meassages.ts b/projects/ngx-mat-errors/src/lib/error-messages.ts similarity index 100% rename from projects/ngx-mat-errors/src/lib/error-meassages.ts rename to projects/ngx-mat-errors/src/lib/error-messages.ts diff --git a/projects/ngx-mat-errors/src/lib/locales/en.ts b/projects/ngx-mat-errors/src/lib/locales/en.ts index 3c51994..375b5af 100644 --- a/projects/ngx-mat-errors/src/lib/locales/en.ts +++ b/projects/ngx-mat-errors/src/lib/locales/en.ts @@ -1,6 +1,6 @@ import { formatDate } from '@angular/common'; import { FactoryProvider, LOCALE_ID } from '@angular/core'; -import { ErrorMessages, LengthError, MaxError, MinError } from '../error-meassages'; +import { ErrorMessages, LengthError, MaxError, MinError } from '../error-messages'; import { NGX_MAT_ERROR_DEFAULT_OPTIONS } from '../ngx-mat-errors.component'; export function errorMessagesEnFactory( diff --git a/projects/ngx-mat-errors/src/lib/locales/hu.ts b/projects/ngx-mat-errors/src/lib/locales/hu.ts index fe39496..8df4c26 100644 --- a/projects/ngx-mat-errors/src/lib/locales/hu.ts +++ b/projects/ngx-mat-errors/src/lib/locales/hu.ts @@ -1,6 +1,6 @@ import { formatDate } from '@angular/common'; import { FactoryProvider, LOCALE_ID } from '@angular/core'; -import { ErrorMessages, LengthError, MaxError, MinError } from '../error-meassages'; +import { ErrorMessages, LengthError, MaxError, MinError } from '../error-messages'; import { NGX_MAT_ERROR_DEFAULT_OPTIONS } from '../ngx-mat-errors.component'; export function errorMessagesHuFactory(locale: string, format = 'shortDate'): ErrorMessages { @@ -16,12 +16,12 @@ export function errorMessagesHuFactory(locale: string, format = 'shortDate'): Er server: (error: string) => error, matDatepickerMin: (error: MinError) => { const formatted = formatDate(error.min, format, locale); - // In Hungarian dates are ending with '.' + // In Hungarian date ends with '.' return `Nem lehet korábbi dátum, mint ${formatted ?? error.min}`; }, matDatepickerMax: (error: MaxError) => { const formatted = formatDate(error.max, format, locale); - // In Hungarian dates are ending with '.' + // In Hungarian date ends with '.' return `Nem lehet későbbi dátum, mint ${formatted ?? error.max}`; }, }; diff --git a/projects/ngx-mat-errors/src/lib/locales/pt-br.ts b/projects/ngx-mat-errors/src/lib/locales/pt-br.ts index 3a22e9b..375df25 100644 --- a/projects/ngx-mat-errors/src/lib/locales/pt-br.ts +++ b/projects/ngx-mat-errors/src/lib/locales/pt-br.ts @@ -1,6 +1,6 @@ import { formatDate } from '@angular/common'; import { FactoryProvider, LOCALE_ID } from '@angular/core'; -import { ErrorMessages, LengthError, MaxError, MinError } from '../error-meassages'; +import { ErrorMessages, LengthError, MaxError, MinError } from '../error-messages'; import { NGX_MAT_ERROR_DEFAULT_OPTIONS } from '../ngx-mat-errors.component'; export function errorMessagesPtBtFactory( diff --git a/projects/ngx-mat-errors/src/lib/ngx-mat-errors.component.spec.ts b/projects/ngx-mat-errors/src/lib/ngx-mat-errors.component.spec.ts index f4530f7..babef13 100644 --- a/projects/ngx-mat-errors/src/lib/ngx-mat-errors.component.spec.ts +++ b/projects/ngx-mat-errors/src/lib/ngx-mat-errors.component.spec.ts @@ -12,7 +12,7 @@ import { NGX_MAT_ERROR_DEFAULT_OPTIONS, NgxMatErrorsModule, } from 'ngx-mat-errors'; -import { LengthError } from './error-meassages'; +import { LengthError } from './error-messages'; import { getNgxMatErrorDefMissingForError } from './errors'; const defaultProviders: Provider[] = [ diff --git a/projects/ngx-mat-errors/src/lib/ngx-mat-errors.component.ts b/projects/ngx-mat-errors/src/lib/ngx-mat-errors.component.ts index 4eb01b8..c4d5af7 100644 --- a/projects/ngx-mat-errors/src/lib/ngx-mat-errors.component.ts +++ b/projects/ngx-mat-errors/src/lib/ngx-mat-errors.component.ts @@ -19,7 +19,7 @@ import { } from '@angular/material/form-field'; import { Observable, defer, of } from 'rxjs'; import { distinctUntilChanged, map, startWith } from 'rxjs/operators'; -import { ErrorMessages } from './error-meassages'; +import { ErrorMessages } from './error-messages'; import { getNgxMatErrorDefMissingForError } from './errors'; export type ErrorTemplate = diff --git a/projects/ngx-mat-errors/src/public-api.ts b/projects/ngx-mat-errors/src/public-api.ts index 3d20d5d..3de82e8 100644 --- a/projects/ngx-mat-errors/src/public-api.ts +++ b/projects/ngx-mat-errors/src/public-api.ts @@ -4,5 +4,5 @@ export * from './lib/ngx-mat-errors.component'; export * from './lib/ngx-mat-errors.module'; -export * from './lib/error-meassages'; +export * from './lib/error-messages'; export * from './lib/locales';