easy_localization_yaml 0.1.1 copy "easy_localization_yaml: ^0.1.1" to clipboard
easy_localization_yaml: ^0.1.1 copied to clipboard

YAML loader for easy_localization package. Supports assets from packages. 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
140
pub points
58%
popularity

Publisher

verified publisherainkin.com

YAML loader for easy_localization package. Supports assets from packages. 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