Skip to content

A PHP script to translate all i18n strings using Google Translate

Notifications You must be signed in to change notification settings

Qerope/i18n-Auto-Google-Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

i18n-Auto-Google-Translator

A PHP script to translate all i18n strings using Google Translate

Usage

php translator.php languageFile fromLanguage toLanguages

Parameters

languageFilePath to the xx.json file for source language. example: ~/en.jsonString (Path)
fromLanguageIso language code of the source file. example: en String (Language Code)
toLanguagesArray of destination languages seperated by ",". example: fr,hi,de,nl,zh String (Language Code)

Example

php translator.php ~/en.json en hi,fr

So many request at the same time will make google ban your IP address temporarly and return Error 302 instead of the translation string. Use of VPN is recommended

About

A PHP script to translate all i18n strings using Google Translate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages