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 ↗