easy_localization_yaml 0.1.2 copy "easy_localization_yaml: ^0.1.2" to clipboard
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.

Pub Package GitHub CodeFactor Support Chat

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.

1
likes
160
points
193
downloads

Publisher

verified publisherainkin.com

Weekly Downloads

YAML loader for easy_localization package. Supports assets from packages and ignoring errors. No redundant dependencies.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT-0 (license)

Dependencies

easy_localization, flutter, yaml

More

Packages that depend on easy_localization_yaml