From f37b92766e94a467c14669d9419849587c7939d9 Mon Sep 17 00:00:00 2001 From: Jacob Moura Date: Tue, 27 Aug 2024 10:07:22 -0300 Subject: [PATCH] update constructor --- lib/src/localization/language.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}'.",