Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.05 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.05 KB

AndroidXlsParser

A simple parser by reading a Microsoft Excel spreadsheet and generates supported locale strings.xml files with its own folder

Sample input

Sample translations.xls input file:

Sample output

sample of generated folder and file:

Pre-requisite

  • First Row of the Excel sheet should contains the Locale name
  • First column should only contains the string key. Values are to be quoted
  • Generated files are defaulted to values-R+<language code>+<country code> as per specified in Android Documentation

Usage

  • Place your excel file on the root directory
  • For additional locale support just add the values to the LocaleHeader enum class
  • Replace your excel file name and sheet number to the line val sheet = getSheet("sample/translations.xlsx", 0)
  • Run the program