intl_script_recognizer 1.0.0
intl_script_recognizer: ^1.0.0 copied to clipboard
Handle the Locale which offer script language only to corresponded region code in intl package
An adapter helps intl
package recognize correct language when Locale
specified script language #
The pattern of locale for intl package is (language)_(COUNTRY)
only.
However, Flutter's Locale format is
(language)_(Script)_(COUNTRY)
which triggered fallback to (language)
only. Therefore, this package
aims to handle correct language system by define country code with corresponded scripting.
Get started #
Install intl
and this package by using command:
flutter pub get intl intl_script_recognizer
or modify dependencies
in pubspec.yaml
directly:
# pubspec.yaml
depencencies:
intl: any
intl_script_recognizer: ^1.0.0
Then, import dependencies into your project:
import 'package:intl/intl.dart';
import 'package:intl_script_recognizer/base.dart';
If DateFormat
is required, it is highly recommended to import date format extension package:
import 'package:intl_script_recognizer/date_format.dart';
License #
BSD-3