diff --git a/lib/src/localization/language.dart b/lib/src/localization/language.dart index e9e159f..18b6cbc 100644 --- a/lib/src/localization/language.dart +++ b/lib/src/localization/language.dart @@ -27,7 +27,9 @@ abstract class Language { validEmail: 'validEmail', ); - Language(this.culture); + Language(this.culture, [Map translations = const {}]) { + _translations.addAll(translations); + } final _translations = { code.equalTo: "'{PropertyName}' must be equal to '{ComparisonValue}'.",