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

outdated

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.

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 : [
    'hello', 
    'how are you?',
    'everything is fine',
  ],
  builder: (stringList, percentage){
            return Text.rich(TextSpan(
              children: [
                TextSpan(text: stringList[0]+' '),
                TextSpan(text: stringList[1]+' '),
                TextSpan(text: stringList[2]),

              ]
            ));
});
15
likes
0
pub points
78%
popularity

Publisher

verified publishersipio.it

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, hive, hive_flutter, translator

More

Packages that depend on auto_localization