A simple parser by reading a Microsoft Excel spreadsheet and generates supported locale strings.xml
files with its own folder
Sample translations.xls
input file:
sample of generated folder and file:
- 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
- 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