Sueta

TranslateAPI

1.2.6

Translate using Google's premium service for free!

·Plugin

This plugin is suuuper small so I'm not even going to put effort into formatting this nicely. Basically this plugin allows you to use Google's premium translation service for free. Tada. Here is an example of it in use.

import org.bukkit.Bukkit;

import me.TheTealViper.translateapi.api.API;

public class example {
    public void exampleMethod(){
        Bukkit.broadcastMessage(API.translate("I really like men", "es"));
    }
}

A thing to note is the language from and language to take in 'ISO 639-1' codes from www.loc.gov/standards/iso639-2/php/code_list.php and not all of them are supported perfectly. To save your time, here are some that I found to be useful:
- af
- ar
- bn
- bg
- cs
- cy
- da
- de
- el
- en
- es
- fr
- ga
- he
- hi
- hu
- hy
- is
- id
- it
- ja
- ko
- la
- nl
- no
- pa
- pl
- pt
- ru
- sk
- sv
- tr
- uk
- zh

Similar projects

Plugin →