1.0.0 • Published 1 year ago
oqdo-react-autotranslate v1.0.0
oqdo-react-autotranslate
Automatically translate language file using google translator
How to install
npm install -g oqdo-react-autotranslateRun
intl-translate /path/to/site/public/locales/en.json es keyfile.json targetfile.jsonUsage
You could use this tool to automate the deployment process of your React app that has used react-intl for i18n.
Command line arguments
intl-translate SOURCEFILE TARGET_LOC_CODE KEY_FILE TARGET_FILE DONTOVERRIDESOURCEFILESource file name e.g./path/to/source/locale/en.json- TARGET_LOC_CODE Locale code that you want to convert the source file e.g.
de KEY_FILEGoogle cloud api key file for Translator cloud service, This is a JSON file containing the private key, token urls etc...TARGET_FILEpath to target file name e.g./path/to/source/locale/de.jsonDONTOVERRIDEoptional flag to define if existing translations in target file shall be overriden (default:false)
1.0.0
1 year ago