v2.0.2
easy_localization_loader
easy_localization용 사용자 정의 자산 로더 (Json, CSV, http, Xml, API 등)
73좋아요 2.1만30일 다운로드90Pub 점수
AndroidiOSmacOSWindowsLinux
easy_localization용 사용자 정의 자산 로더
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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
의존성 목록 10 개
{"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사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗