|
| 1 | +```html |
| 2 | +<mat-password-strength-info |
| 3 | + [lowerCaseCriteriaMsg]="'LOWER_CASE_CRITERIA_MSG' | translate" |
| 4 | + [upperCaseCriteriaMsg]="'UPPER_CASE_CRITERIA_MSG '| translate" |
| 5 | + [digitsCriteriaMsg]="'DIGITS_CRITERIA_MSG '| translate" |
| 6 | + [specialCharsCriteriaMsg]="'SPECIAL_CHARS_CRITERIA_MSG' | translate" |
| 7 | + [minCharsCriteriaMsg]="'MIN_CHARS_CRITERIA_MSG' | translate" |
| 8 | + [passwordComponent]="passwordComponent"> |
| 9 | +</mat-password-strength-info> |
| 10 | +``` |
| 11 | + |
| 12 | +`assets/i18n/en.json` |
| 13 | + |
| 14 | +```json |
| 15 | +{ |
| 16 | + "LOWER_CASE_CRITERIA_MSG" : "contains at least one lower character", |
| 17 | + "UPPER_CASE_CRITERIA_MSG" : "contains at least one upper character", |
| 18 | + "DIGITS_CRITERIA_MSG" : "contains at least one digit", |
| 19 | + "SPECIAL_CHARS_CRITERIA_MSG" : "contains at least one special character", |
| 20 | + "MIN_CHARS_CRITERIA_MSG" : "contains at least {{value}} characters" |
| 21 | +} |
| 22 | +``` |
| 23 | + |
| 24 | +`assets/i18n/de.json` |
| 25 | + |
| 26 | +```json |
| 27 | +{ |
| 28 | + "LOWER_CASE_CRITERIA_MSG" : "enthält mindestens ein unteres Zeichen", |
| 29 | + "UPPER_CASE_CRITERIA_MSG" : "enthält mindestens ein oberes Zeichen", |
| 30 | + "DIGITS_CRITERIA_MSG" : "enthält mindestens eine Ziffer", |
| 31 | + "SPECIAL_CHARS_CRITERIA_MSG" : "contains at least one special character", |
| 32 | + "MIN_CHARS_CRITERIA_MSG" : "enthält mindestens {{value}} Zeichen" |
| 33 | +} |
| 34 | +``` |
| 35 | + |
| 36 | +`assets/i18n/fr.json` |
| 37 | + |
| 38 | +```json |
| 39 | +{ |
| 40 | + "LOWER_CASE_CRITERIA_MSG" : "contient au moins un caractère inférieur", |
| 41 | + "UPPER_CASE_CRITERIA_MSG" : "contient au moins un caractère supérieur", |
| 42 | + "DIGITS_CRITERIA_MSG" : "contient au moins un chiffre", |
| 43 | + "SPECIAL_CHARS_CRITERIA_MSG" : "contient au moins un caractère spécial", |
| 44 | + "MIN_CHARS_CRITERIA_MSG" : "contient au moins {{valeur}} caractères" |
| 45 | +} |
| 46 | +``` |
0 commit comments