Skip to content

Tool to convert a CSV file containing translations into localized android xml files

Notifications You must be signed in to change notification settings

jschnall/AndroidStringHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AndroidStringHelper

This is a tool to convert a CSV file containing translations into localized android xml files. It can also convert to JSON format.

To import strings from CSV into Android xml format:

python importer.py -i <inputFile> -o <outputDir> -n [outputFileName] -d [delimiter] -t [strings|plurals|json]

Note: Example CSV files in the necessary format for both strings and plurals are included in the project.

To export strings from Android xml to csv:

python exporter.py -i <resDir> -o <outputDir> -d [delimiter]

Note: The export script currently expects strings and plurals to be kept in separate files.

To compare two Android strings.xml files for missing entries

csvdiff.py -i <inputFile1> -j <inputFile2>

About

Tool to convert a CSV file containing translations into localized android xml files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages