1.0.3 • Published 2 years ago

excel2lang v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

excel2lang

excel2lang is a small utility program which takes a xlsx file as an input and extracts the languages strings to a JSON format. It has several cool features:

  • Support comment lines
  • Can create multiple files
  • Use the first column as default if no value

Installation

npm install -g excel2lang

Usage

excel2lang input.xlsx

xlsx format

Your excel must be like this:

#Unique IDEnglishFrench
Cidenfr
F./{lang}.json
#Generic
openOpenOuvrir
browseBrowseParcourir
editEditModifier
selectSelectSelectionner
F./topbar/{lang}.json
#Topbar
topbar/fileFileFichier
topbar/helpHelpAide

The first column indicates what the line is for:

CharacterDescription
nothingRegular line of strings.
CCode line, indicating the language code for each column.
FThe JSON file to create. Will include all lines until the end of the file or another F line. The {lang} substring will be replace by the current language code.
#Comment line.

In order to work, a C line MUST be the first line of the excel sheet (beside comment line). Also, a F line MUST be present before the first string line.

TODO

  • More checks for errors
1.0.2

2 years ago

1.0.3

2 years ago

1.0.1

5 years ago

1.0.0

5 years ago