easy_localization_loader
Easy Localization Loader custom assets loaders for easy_localization (Json, CSV, http, Xml, API ...)
custom assets loaders for easy_localization
{"sdk":"flutter"}^7.0.0^6.0.0^3.0.8^1.6.0^2.1.5^6.6.1^3.1.3^6.0.0^1.27.0English project snapshot. Visit GitHub for the latest content.
Pub Version Code Climate issues GitHub closed issues GitHub contributors GitHub repo size GitHub forks GitHub stars
CodeFactor Grade GitHub license
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
...
void main(){
runApp(EasyLocalization(
child: MyApp(),
supportedLocales: [Locale('en', 'US'), Locale('ar', 'DZ')],
path: 'resources/langs/langs.csv',
assetLoader: CsvAssetLoader()
));
}
...
In order to use HttpAssetLoader you must provide a path to a folder (i.e. base path) where all your translations are placed like https://example.com/translations
Your translations should be created as separate files with .json extension. Placing translations as individual files reduces the size of the file to load on application init.
Example:
translations/
├── en-US.json
└── uk-UA.json