easy_localization_yaml 0.1.2 easy_localization_yaml: ^0.1.2 copied to clipboard
YAML loader for easy_localization package. Supports assets from packages and ignoring errors. No redundant dependencies.
YamlAssetLoader
that replaces the one from
easy_localization_loader package.
It allows you to drop unwanted dependencies from importing many other loaders you do not use.
It also has the package
argument for assets from packages.
Example #
Follow the easy_localization docs except adding the loader:
runApp(
EasyLocalization(
assetLoader: const YamlAssetLoader(directory: 'assets/translations'), // NEW
fallbackLocale: const Locale('en'),
path: 'unused',
startLocale: const Locale('en'),
supportedLocales: const [Locale('en')],
child: MyApp(),
),
);
Tech Support, Jobs, and Education #
Please join my Telegram channel for announcements, Flutter jobs, articles, talks, and more: @ainkin_com
Do you have any questions? Feel free to ask in the Telegram Support Chat.
Or even just join to say 'Hi!'. I like to hear from the users.