Skip to content

Commit

Permalink
I18N api updated for #9929
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Feb 23, 2021
1 parent d6f1ebf commit 9e56b16
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/components/api/primengconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ export class PrimeNGConfig {
monthNames: ["January","February","March","April","May","June","July","August","September","October","November","December"],
monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
today: 'Today',
weekHeader: 'Wk'
weekHeader: 'Wk',
weak: 'Weak',
medium: 'Medium',
strong: 'Strong',
passwordPrompt: 'Enter a password'
}

private translationSource = new Subject<any>();
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/api/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ export interface Translation {
monthNamesShort?: string[];
today?: string;
weekHeader?: string;
weak?: string;
medium?: string;
strong?: string;
passwordPrompt?: string;
}
4 changes: 4 additions & 0 deletions src/app/components/api/translationkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ export class TranslationKeys {
public static readonly MONTH_NAMES_SHORT = 'monthNamesShort';
public static readonly TODAY = 'today';
public static readonly WEEK_HEADER = 'weekHeader';
public static readonly WEAK = 'weak';
public static readonly MEDIUM = 'medium';
public static readonly STRONG = 'strong';
public static readonly PASSWORD_PROMPT = 'passwordPrompt';
}

0 comments on commit 9e56b16

Please sign in to comment.