easy_localization_loader
easy_localization용 사용자 정의 자산 로더 (Json, CSV, http, Xml, API 등)
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.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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