Skip to content

Commit

Permalink
Merge pull request #42 from Totati/bugfix/fix-error-messages
Browse files Browse the repository at this point in the history
fix: typo in error-messages file name
  • Loading branch information
Totati authored Aug 11, 2023
2 parents a569dcc + 54538e6 commit a6e3d5e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion projects/ngx-mat-errors/src/lib/locales/en.ts
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
6 changes: 3 additions & 3 deletions projects/ngx-mat-errors/src/lib/locales/hu.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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}`;
},
};
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-mat-errors/src/lib/locales/pt-br.ts
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-mat-errors/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit a6e3d5e

Please sign in to comment.