![GitHub stars](https://camo.githubusercontent.com/3d2b3871cc9d035f299a897999a2dd4a9a8435f47f17cc9495315d2514b7846e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6169737361742f656173795f6c6f63616c697a6174696f6e5f6c6f616465723f7374796c653d666c61742d737175617265)
![GitHub license](https://camo.githubusercontent.com/8b4b3814e1b06553026b9f7276b2453a879eb2ec2a3168f803966eb918940542/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6169737361742f656173795f6c6f63616c697a6174696f6e5f6c6f616465723f7374796c653d666c61742d737175617265)
- Add this to your package's pubspec.yaml file:
dependencies:
#Easy Localization main package
easy_localization: <last_version>
# stable version install from https://pub.dev/packages
easy_localization_loader: <last_version>
# Dev version install from git REPO
easy_localization_loader:
git: https://github.com/aissat/easy_localization_loader.git
- Change assetLoader and patch
...
void main(){
runApp(EasyLocalization(
child: MyApp(),
supportedLocales: [Locale('en', 'US'), Locale('ar', 'DZ')],
path: 'resources/langs/langs.csv',
assetLoader: CsvAssetLoader()
));
}
...
- All done!.