Skip to content

frestoinc/AndroidXlsParser

Repository files navigation

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

About

Simple excel to Android strings.xml for locale support

Topics

Resources

License

Stars

Watchers

Forks

Languages