diff --git a/lib/src/i18n/tr.dart b/lib/src/i18n/tr.dart index 45a972f..90ea7f0 100644 --- a/lib/src/i18n/tr.dart +++ b/lib/src/i18n/tr.dart @@ -5,12 +5,10 @@ class LocaleTr extends FormValidatorLocale { String name() => 'tr'; @override - String minLength(String v, int n) => - 'Bu alan en az $n harf olmalı'; + String minLength(String v, int n) => 'Bu alan en az $n harf olmalı'; @override - String maxLength(String v, int n) => - 'Bu alan en fazla $n harf olmalı'; + String maxLength(String v, int n) => 'Bu alan en fazla $n harf olmalı'; @override String email(String v) => 'Email adresi geçerli değil'; diff --git a/test/localization_test.dart b/test/localization_test.dart index 9d6632a..ac5984a 100644 --- a/test/localization_test.dart +++ b/test/localization_test.dart @@ -19,7 +19,8 @@ void validateLocale(ValidationBuilder builder, FormValidatorLocale locale) { expect(builder.reset().maxLength(1).test('abc'), equals(locale.maxLength('abc', 1))); expect(builder.reset().email().test('abc'), equals(locale.email('abc'))); - expect(builder.reset().phone().test('abc'), equals(locale.phoneNumber('abc'))); + expect( + builder.reset().phone().test('abc'), equals(locale.phoneNumber('abc'))); expect(builder.reset().url().test('abc'), equals(locale.url('abc'))); expect(builder.reset().ip().test('abc'), equals(locale.ip('abc'))); expect(builder.reset().ipv6().test('abc'), equals(locale.ipv6('abc')));