Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.26 KB

README.md

File metadata and controls

25 lines (20 loc) · 1.26 KB

localisation_parser

Small php script to generate iOS, Android and Laravel (php array) localisation files from tsv/csv

Usage:

%> php parse.php -i <file> [-o <output dir>] [-ios | -android | -laravel | -all] [-separator <sheet separator>] [-force] [-multifile] [-of <name>]

-i <file>                     : input file (tsv, csv, ...)
-o <output dir>               : directory where files will be generated
                                (directory will be generated if not existing)
                                default = ./
-ios                          : Generate only iOS files
-android                      : Generate only Android files
-laravel                      : Generate only Laravel(php array) files
-all                          : Generate all supported platforms (default)
-separator <sheet separator>  : Column seprator in input file (default tab "\t")
-force                        : Generates files to languages which translation is not complete
-multifile                    : Each header at input file creates separate xml file (android only)
-of <name>                    : Output file name (Only applicable with -laravel or -all options)
                                default: text from first column of first line (error if empty)