diff --git a/CHANGELOG.md b/CHANGELOG.md index 6af607d..e654f70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [9.2.6] - added Vietnamese localization messages +- added localizations for Hebrew ## [9.2.5] - fix: handle change on country selection. onChanged callback would trigger if country field is updated diff --git a/README.md b/README.md index 073c301..3aae203 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,7 @@ This package uses the `flutter_country_selector` package under the hood, which e - es - fa - fr + - he - hi - hu - it diff --git a/l10n/he.arb b/l10n/he.arb new file mode 100644 index 0000000..1a033fb --- /dev/null +++ b/l10n/he.arb @@ -0,0 +1,30 @@ +{ + "@@locale": "he", + "invalidPhoneNumber": "מספר טלפון לא חוקי", + "invalidCountry": "מדינה לא חוקית", + "invalidMobilePhoneNumber": "מספר טלפון נייד לא חוקי", + "invalidFixedLinePhoneNumber": "מספר טלפון קווי לא חוקי", + "requiredPhoneNumber": "מספר טלפון נדרש", + "selectACountrySemanticLabel": "בחר מדינה. הבחירה הנוכחית: {countryName} {dialCode}", + "@selectACountrySemanticLabel": { + "description": "תיאור סמנטי של כפתור הבחירה למדינה", + "placeholders": { + "countryName": { + "type": "String" + }, + "dialCode": { + "type": "String" + } + } + }, + "phoneNumber": "מספר טלפון", + "currentValueSemanticLabel": "הערך הנוכחי: {currentValue}", + "@currentValueSemanticLabel": { + "description": "תיאור סמנטי של קלט הטלפון. התווית או הרמז יתווספו דינמית", + "placeholders": { + "currentValue": { + "type": "String" + } + } + } +} diff --git a/lib/src/localization/generated/phone_field_localization_impl.dart b/lib/src/localization/generated/phone_field_localization_impl.dart index 2619bfc..643dec3 100644 --- a/lib/src/localization/generated/phone_field_localization_impl.dart +++ b/lib/src/localization/generated/phone_field_localization_impl.dart @@ -13,6 +13,7 @@ import 'phone_field_localization_impl_en.dart'; import 'phone_field_localization_impl_es.dart'; import 'phone_field_localization_impl_fa.dart'; import 'phone_field_localization_impl_fr.dart'; +import 'phone_field_localization_impl_he.dart'; import 'phone_field_localization_impl_hi.dart'; import 'phone_field_localization_impl_hu.dart'; import 'phone_field_localization_impl_it.dart'; @@ -122,6 +123,7 @@ abstract class PhoneFieldLocalizationImpl { Locale('es'), Locale('fa'), Locale('fr'), + Locale('he'), Locale('hi'), Locale('hu'), Locale('it'), @@ -208,6 +210,7 @@ class _PhoneFieldLocalizationImplDelegate 'es', 'fa', 'fr', + 'he', 'hi', 'hu', 'it', @@ -248,6 +251,8 @@ PhoneFieldLocalizationImpl lookupPhoneFieldLocalizationImpl(Locale locale) { return PhoneFieldLocalizationImplFa(); case 'fr': return PhoneFieldLocalizationImplFr(); + case 'he': + return PhoneFieldLocalizationImplHe(); case 'hi': return PhoneFieldLocalizationImplHi(); case 'hu': diff --git a/lib/src/localization/generated/phone_field_localization_impl_he.dart b/lib/src/localization/generated/phone_field_localization_impl_he.dart new file mode 100644 index 0000000..c98b44a --- /dev/null +++ b/lib/src/localization/generated/phone_field_localization_impl_he.dart @@ -0,0 +1,34 @@ +import 'phone_field_localization_impl.dart'; + +/// The translations for Hebrew (`he`). +class PhoneFieldLocalizationImplHe extends PhoneFieldLocalizationImpl { + PhoneFieldLocalizationImplHe([super.locale = 'he']); + + @override + String get invalidPhoneNumber => 'מספר טלפון לא חוקי'; + + @override + String get invalidCountry => 'מדינה לא חוקית'; + + @override + String get invalidMobilePhoneNumber => 'מספר טלפון נייד לא חוקי'; + + @override + String get invalidFixedLinePhoneNumber => 'מספר טלפון קווי לא חוקי'; + + @override + String get requiredPhoneNumber => 'מספר טלפון נדרש'; + + @override + String selectACountrySemanticLabel(String countryName, String dialCode) { + return 'בחר מדינה. הבחירה הנוכחית: $countryName $dialCode'; + } + + @override + String get phoneNumber => 'מספר טלפון'; + + @override + String currentValueSemanticLabel(String currentValue) { + return 'הערך הנוכחי: $currentValue'; + } +}