Skip to content

Commit

Permalink
All Localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Ioannou committed Feb 27, 2024
1 parent 317f934 commit 8927a20
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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'
],
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.24"
version: "2.0.25"
fake_async:
dependency: transitive
description:
Expand Down
4 changes: 4 additions & 0 deletions lib/src/country_parser.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -283,6 +284,8 @@ class CountryParser {
return cs;
case 'ca':
return ca;
case 'he':
return he;
case 'en':
default:
return en;
Expand Down Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8927a20

Please sign in to comment.