0.0.3 • Published 5 years ago

translation-xlsx-loader v0.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Translations extractor

This is a simple utility for extracting translations from excel worksheets to be used in applications that utilize language-named translation JSON files.

usage:

--outdir ./some-dir --columns key:0,en:1 --input 'translations_master.xlsx' --sheet someTab

This will retrieve the file at translate.json, extract the columns 0 and 1, using the 0 as the translation keys. The translations will then be extracted into a separate JSON file named en.json, and saved in the outdir directory.

keyen
BUTTON_TEXTSuper special action!
FOO_BARFoo bar baz

=>

{
  "BUTTON_TEXT": "Super special action!",
  "FOO_BAR": "Foo bar baz"
}

options:

  • --help/-h: show this message
  • --input/-i: (mandatory) the file to extract translations from
  • --outdir/-o: (mandatory) the directory to store the extracted JSON files in
  • --columns/-c: (mandatory) the columns to extract, and their column position: key is mandatory.
  • --sheet/-s: (mandatory) the worksheet tab name to use
0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago