Skip to content

Commit

Permalink
update constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobaraujo7 committed Aug 27, 2024
1 parent 7d0eeed commit f37b927
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/localization/language.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ abstract class Language {
validEmail: 'validEmail',
);

Language(this.culture);
Language(this.culture, [Map<String, String> translations = const {}]) {
_translations.addAll(translations);
}

final _translations = <String, String>{
code.equalTo: "'{PropertyName}' must be equal to '{ComparisonValue}'.",
Expand Down

0 comments on commit f37b927

Please sign in to comment.