See https://github.com/Petrol-/android-csv-to-string-resources
android-csv-tostring-resources
This project is an utility app converting a CSV file to a strings.xml for Android.
CSV file format
The file columns separator must be the character semicolon ;
Only the first 2 columns are used. If the file contains more than 2 columns, they are ignored.
The file must not have any header!
The first column is the key. The second, the value
exemple of CSV file (exemple.csv)
hello_key;Hello World !
cancel;Cancel
output
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello_key">"Hello World !"</string>
<string name="cancel">"cancel"</string>
</resources>
App usage (Windows)
AndroidToCSV.exe exemple.csv
The tool will create an output folder and generate the file strings.xml inside.
Build from source
- Download the sources
- Open The solution in src/
- Right click on the project AndroidToCSV -> Publish
- Select the Windows Profile (or create a new publushing profile)
- This will generate a Self Contained App (it includes the .Net Core Runtime DLL) in bin/{Platform}/publish