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