Convert CSV formatted text translation strings into Android or iOS compatible formats.
Upload size limit: 500kB; Timeout limit: 5 sec; Process limit: 5 simultaneous requests.
Download
Source code
Notes
- Arguments within string are not converted.
- New string catalog format from XCode is not supported.
Requirements
- Java Runtime Environment, version 17 or later
Usage
java -jar csv2i18n.jar --input [CSV_PATH] > [OUTPUT]
Options
-i, --input [CSV_PATH] - Path of CSV file to be parsed
Example
With following string input:
xx,en,hr k1,e1,h1 k2,e2,h2
Along with following command:
java -jar csv2i18n.jar --input "./input.csv" > "./output.zip"
You should get a ZIP file containing following files:
- Android-en.xml
<?xml version="1.0" encoding="utf-8"?>
<resources> <string name="k1">e1</string> <string name="k2">e2</string> </resources>
- Android-hr.xml
<?xml version="1.0" encoding="utf-8"?>
<resources> <string name="k1">h1</string> <string name="k2">h2</string> </resources>
- iOS-en.strings
"k1" = "e1"; "k2" = "e2";
- iOS-hr.strings
"k1" = "h1"; "k2" = "h2";
License
This program is licensed under AGPL-3.0-only.