From 8927a2056de87e7b5ddb371dd230fc3526a9fd86 Mon Sep 17 00:00:00 2001 From: -Daniel Ioannou Date: Tue, 27 Feb 2024 21:32:39 +0200 Subject: [PATCH] All Localizations --- example/lib/main.dart | 2 ++ example/pubspec.lock | 2 +- lib/src/country_parser.dart | 4 ++++ pubspec.yaml | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 4e0ab5e..5767776 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -44,6 +44,8 @@ class MyApp extends StatelessWidget { const Locale('sk'), const Locale('ro'), const Locale('bg'), + const Locale('ca'), + const Locale('he'), const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans'), // Generic Simplified Chinese 'zh_Hans' const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'), // Generic traditional Chinese 'zh_Hant' ], diff --git a/example/pubspec.lock b/example/pubspec.lock index 9d042f6..4e7e14a 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -47,7 +47,7 @@ packages: path: ".." relative: true source: path - version: "2.0.24" + version: "2.0.25" fake_async: dependency: transitive description: diff --git a/lib/src/country_parser.dart b/lib/src/country_parser.dart index f59f481..e3d4cd6 100644 --- a/lib/src/country_parser.dart +++ b/lib/src/country_parser.dart @@ -1,4 +1,5 @@ import 'package:country_picker/country_picker.dart'; +import 'package:country_picker/src/res/strings/he.dart'; import 'package:flutter/material.dart'; import 'res/country_codes.dart'; @@ -283,6 +284,8 @@ class CountryParser { return cs; case 'ca': return ca; + case 'he': + return he; case 'en': default: return en; @@ -326,6 +329,7 @@ class CountryParser { const Locale('ko'), const Locale('cs'), const Locale('ca'), + const Locale('he'), const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans'), const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'), ]..removeWhere((Locale l) => exclude.contains(l)); diff --git a/pubspec.yaml b/pubspec.yaml index 4965212..102e680 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: country_picker description: A flutter package to select a country from a list of countries. -version: 2.0.24 +version: 2.0.25 homepage: https://github.com/Daniel-Ioannou repository: https://github.com/Daniel-Ioannou/flutter_country_picker