tolribeiro / nischt

PHP script to speed up the translation setup for Angular apps using ngx-translate module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nischt (ngx-script-helper)

A simple PHP script to speed up the translation setup for Angular apps using ngx-translate module.

Installation

In order to run the script, you need to have PHP installed on your machine.

Most Mac OS versions ship with PHP, so it's very likely you won't have to do anything. If that's not the case, for more info on how to install it, click here.

Usage

  1. Define your constants oninput.txt file;
  2. Choose source and target language;
  3. Using English (en) as source (default) and Spanish (en) as target, open your Terminal and run php translate.php en es.

Now you can copy and paste the translations on your respective .json files.

Note: you need a valid key in order to use the Google Translation API. More info here.

video

About

PHP script to speed up the translation setup for Angular apps using ngx-translate module


Languages

Language:PHP 100.0%