Auto Translation A Text Game

Hi, I have a idea.
That is using google translate API. This was when I thought the translation of each line was terrible
So below is my idea. Currently I try to write this plugin completely




Download on github:
https://github.com/uhpdgames/UHPDGa...lob/master/js/plugins/UHPD_AutoTranslation.js
Wouldn't it be easier to use CSV?
i proceed this ways on my side.
image.thumb.png.3df7a2a035c6691c121e55499b24601d.png


export in CSV give you this.

Code:
d;targetCode;frCA;enUS;ar;jp;ru;sp;;;;;;
pancart_p1m1_01;0;Salut ceci est une exemple ${i.exp}. Voici l'astuce qui � ${test} Ce text est compatible es6. ;Hi This is an example ${i.exp}. Here's the trick that... ${test} this text is compatible es6.;????? ??? ?? ???? ???? ${i.exp}. ??? ?? ??????... ${??????} ??? ???? ?? es6 ???????.;??????????? ${i.exp} ????????????... ${test} ?????????????? es6?;?????? ??? ?????? ${i.exp}. ??? ????... ${?????????} ???? ????? ???????? ??????????? es6.;Hola este es un ejemplo, ${i.exp}. Aqu� est� el truco... ${prueba} este texto es compatible es6.;;;;;;
;1;ceci est un autre paragraphe, asigner a un personage suivant ! ;This is another paragraph, sign has a following character.;;;;;;;;;;
;;;;;;;;;;;;;
;;;;;;;;;;;;;
;;;;;;;;;;;;;
;;;;;;;;;;;;;
demo_intro_b001;;;;;;;;;;;;;


and convert CSV to javascript data with a regex parser.
https://github.com/mholt/PapaParse

and you will get parsed localisation game text with your reference id.
image.thumb.png.b18c9a8a0c2b303ed6a35eeb1f68f082.png


you way look so complicated ! , but nice jobs .

Also in Excel sheet you have auto translator API, and you can also code a button in VBA script for more control.
Hi! If this works will be great! I searched a lot of translation plugins. But they are so complicated to use, but mostly didn't work.
The greatest I have seen is from srd. It works, but for some reason not in mobile :/
Problem with auto translation is it ends up costing money, about $20 per million characters, which is basically 5¢ a page. Not to mention the game developer will need a credit card in order to get access to the API. The credit card alone takes away from a lot of people who use MV for their free online games. Otherwise it's a great idea for those who are in it for commercial games but then if you are spending money on your commercial game you might as well get a real translation and not the mess that most auto translators give you.
Problem with auto translation is it ends up costing money, about $20 per million characters, which is basically 5¢ a page. Not to mention the game developer will need a credit card in order to get access to the API. The credit card alone takes away from a lot of people who use MV for their free online games. Otherwise it's a great idea for those who are in it for commercial games but then if you are spending money on your commercial game you might as well get a real translation and not the mess that most auto translators give you.
I thought the Google API was free $!, well there are several years of it. ! if am not wrong. !
1 million characters is a lot but you still need to link a credit card in order to use it. Pretty sure they've only recently changed to a paid service, couple years maybe? But it says right in there FAQ that it's a paid service and there is no free quota https://cloud.google.com/translate/faq
Wouldn't it be easier to use CSV?
i proceed this ways on my side.
Thanks, Now I have one more way.

Hi! If this works will be great! I searched a lot of translation plugins. But they are so complicated to use, but mostly didn't work.
The greatest I have seen is from srd. It works, but for some reason not in mobile :/
I don't think this will work on mobile, but do not worry about that because it will be disabled before deploying the game.

I thought the Google API was free $!, well there are several years of it. ! if am not wrong. !
1 million characters is a lot but you still need to link a credit card in order to use it. Pretty sure they've only recently changed to a paid service, couple years maybe? But it says right in there FAQ that it's a paid service and there is no free quota https://cloud.google.com/translate/faq
Only $ 300 for a trial in a year. This equivalent is free. I'm thinking of the service Yandex translate. It's free!
The way it work: Start (ON) Plugin Auto Translation ==> run trans() Func ==> Write A dictionary ==> Done (it has finished translation)==> Stop (OFF) Plugin Auto Translation ==> run Game ==> Read the translated dictionary
So, Don't need to translate every time you run the game.
I dropped developing this. Because there is a translation tool.
Translator++ - Game Translation Tool By dreamsavior

Please help me close this topic!

Closing at OP's request.

Original thread: https://forums.rpgmakerweb.com/threads/auto-translation-a-text-game.102603/