JoshRBX
|
  |
| Joined: 19 May 2012 |
| Total Posts: 8778 |
|
|
| 10 Apr 2017 02:52 PM |
Introducing TranslationService. A module that allows you to translate a string into 90 different languages. Our aim is to bring ROBLOX one step closer to becoming the multi-lingual community that many are looking forward to.
TranslationService is designed for developers who are looking to make their game multi-lingual. With our service, developers have the ability to do this easily by translating any phrases or paragraphs into their translated equivalent. The service is powered by Yandex.Translate to ensure that your translations are as accurate as possible. However we cannot confirm that the translations are 100% accurate.
Using TranslationService is extremely easy. First you must require the module. To require the module, you should use the script below (Note that this looks strange because I had to find something to work with the filter. It still works)
local TranslationService = require ( 27074.317369 ^2 )
After doing this, you will now be able to translate text into different languages. To translate, you should use the TranslationService.Translate function. The function takes two parameters which are the text and the language code referring to the language that you would like to translate the text into. Below is an example.
print(TranslationService.Translate("Hello, world!", "fr")) > Bonjour tout le monde!
It's that easy!
Below is a list of the languages that can be used with the TranslationService along with the language codes: (Apologies regarding the format of some languages. This was caused by the filter.)
[af] - Afrikaans [am] - Amharic [ar] - Arabic [az] - Azerbaijan [ba] - Bashkir [be] - Belarusian [bg] - Bulgarian [bn] - Bengali [bs] - Bosnian [ca] - Catalan [ceb] - Cebuano [cs] - Czech Welsh; Language codeee: cv [da] - Danish [de] - German [el] - Greek [en] - English [eo] - Esperanto [es] - Spanish [et] - Estonian [eu] - Basque [fa] - Persian [fi] - Finnish [fr] - French [ga] - Irish [gd] - Scottish [gl] - Galician [gu] - Gujarati [he] - Hebrew [hi] - Hindi [hr] - Croatian [ht] - Haitian (Creole) Hungarian; Language codeee: first two letters [hy] - Armenian [id] - Indonesian [is] - Icelandic [it] - Italian [ja] - Japanese [jv] - Javanese [ka] - Georgian [kk] - Kazakh [kn] - Kannada [ko] - Korean [ky] - Kyrgyz [la] - Latin [lb] - Luxembourgish [lt] - Lithuanian [lv] - Latvian [mg] - Malagasy [mhr] - Mari [mi] - Maori [mk] - Macedonian [ml] - Malayalam [mn] - Mongolian [mr] - Marathi [mrj] - Hill Mari [ms] - Malay [mt] - Maltese [ne] - Nepali [nl] - Dutch [no] - Norwegian [pa] - Punjabi [pap] - Papiamento [pl] - Polish [pt] - Portuguese [ro] - Romanian [ru] - Russian [si] - Sinhala [sk] - Slovakian [sl] - Slovenian [sq] - Albanian [sr] - Serbian [su] - Sundanese [sv] - Swedish [sw] - Swahili [ta] - Tamil [te] - Telugu [tg] - Tajik [th] - Thai [tl] - Tagalog [tr] - Turkish [tt] - Tatar [udm] - Udmurt [uk] - Ukrainian [ur] - Urdu [uz] - Uzbek [vi] - Vietnamese [xh] - Xhosa Yiddish; Language codeee: first two letters [zh] - Chinese
Feel free to send me a PM with any feedback or queries. Thanks for taking an interest in the module!
|
|
|
| Report Abuse |
|