simple_aws_translate 0.0.1 copy "simple_aws_translate: ^0.0.1" to clipboard
simple_aws_translate: ^0.0.1 copied to clipboard

outdated

A Simple implementation of the AWS Translation plugin.

simple_aws_translate #

A Simple implementation of the AWS Translate plugin DISCLAIMER: This is not the AWS officialy released plugin!

Getting Started #

This plugin only supports the Android platform for now. Ios support I plan to support Ios later.

To use this plugin, call init with the access key and secret key that you get from AWS translation. Since this plugin is singleton-based, you only need to call the init function once.

SimpleAwsTranslate.instance.init(accessKey:"YOUR ACCESS KEY", secretKey:"YOUR SECRET KEY");

After you finished call init. You can call the static function translateText to translate any text you want, that function would return translated text if success.

String? result = SimpleAwsTranslate.instance.translateText(text:"Hallo bang!",from:"id",to:"en");
if(result == error){
    print("Something went wrong");
}else{
    print("translated result is:$result");
}

A complete example can be found in the example. Contributions or bug reports are welcome.

3
likes
0
points
5
downloads

Publisher

unverified uploader

Weekly Downloads

A Simple implementation of the AWS Translation plugin.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on simple_aws_translate

Packages that implement simple_aws_translate