auto_localization 2.0.2 copy "auto_localization: ^2.0.2" to clipboard
auto_localization: ^2.0.2 copied to clipboard

This is a project to automatically translate your app in any language.

auto_localization #

A new Flutter plugin. Flutter package to dynamically translate your app.

This plugin will AUTOMATICALLY detect the app Localization and translate the text.

HOW IT WORKS #

So the point was to find a way to convincely translate text in all the languages. To do that we create this system who seam to works really well. It Uses Google Translate

Getting Started #

There is even a cache system to make it faster. Add the dependency in pubspec.yaml:

dependencies:
  ...
  auto_localization: ^2.0.2

HOW TO USE #

init the plugin

await AutoLocalization.init(
  appLanguage: 'en',
  userLanguage: 'it'
);

Translate something

await AutoLocalization.translate("hello");

Use the builder to translate widgets smoothly

AutoLocalBuilder(
  text: const ["ciao", "come stai?"],
  builder: (TranslationWorker tw) {
    print(tw.get('ciao'));
    print(tw.get('come stai?'));
    return Text(tw.get('ciao'),);
  }, 
);
14
likes
120
points
136
downloads

Publisher

verified publishersipio.it

Weekly Downloads

This is a project to automatically translate your app in any language.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, hive, hive_flutter, synchronized, translator

More

Packages that depend on auto_localization