hausa_localization
This package provides localization support for Hausa locale.
Getting Started
Depend on it
Add this to your package's pubspec.yaml file:
dependencies:
hausa_localization: <latest version>
Install it
You can install packages from the command line:
with Flutter:
$ flutter pub get
Import it
import 'package:hausa_localization/hausa_localization.dart';
Use it
MaterialApp(
localizationsDelegates: [
...
HaMaterialLocalizations.delegate,
HaCupertinoLocalizations.delegate,
HaWidgetLocalizations.delegate
],
supportedLocales: [
const Locale('ha', ''),
],
locale: Locale('ha'),
);
if you use EasyLocalizations
EasyLocalization(
supportedLocales: const [
Locale('en'),
Locale('ha')
],
path: 'assets/translations',
fallbackLocale: const Locale('en'),
startLocale: const Locale('ha'),
child: const MyApp(),
),