Skip to content

Commit 8de6b3a

Browse files
Fix Localizations
1 parent 317f934 commit 8de6b3a

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

example/lib/main.dart

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class MyApp extends StatelessWidget {
4444
const Locale('sk'),
4545
const Locale('ro'),
4646
const Locale('bg'),
47+
const Locale('ca'),
48+
const Locale('he'),
4749
const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans'), // Generic Simplified Chinese 'zh_Hans'
4850
const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'), // Generic traditional Chinese 'zh_Hant'
4951
],

example/pubspec.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ packages:
4747
path: ".."
4848
relative: true
4949
source: path
50-
version: "2.0.24"
50+
version: "2.0.25"
5151
fake_async:
5252
dependency: transitive
5353
description:

lib/src/country_parser.dart

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:country_picker/country_picker.dart';
2+
import 'package:country_picker/src/res/strings/he.dart';
23
import 'package:flutter/material.dart';
34

45
import 'res/country_codes.dart';
@@ -283,6 +284,8 @@ class CountryParser {
283284
return cs;
284285
case 'ca':
285286
return ca;
287+
case 'he':
288+
return he;
286289
case 'en':
287290
default:
288291
return en;
@@ -326,6 +329,7 @@ class CountryParser {
326329
const Locale('ko'),
327330
const Locale('cs'),
328331
const Locale('ca'),
332+
const Locale('he'),
329333
const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans'),
330334
const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'),
331335
]..removeWhere((Locale l) => exclude.contains(l));

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: country_picker
22
description: A flutter package to select a country from a list of countries.
33

4-
version: 2.0.24
4+
version: 2.0.25
55

66
homepage: https://github.com/Daniel-Ioannou
77
repository: https://github.com/Daniel-Ioannou/flutter_country_picker

0 commit comments

Comments
 (0)